mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 5 | #ifndef COMPONENTS_PERMISSIONS_PERMISSION_MANAGER_H_ |
| 6 | #define COMPONENTS_PERMISSIONS_PERMISSION_MANAGER_H_ |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 7 | |
Lei Zhang | 998100f | 2021-06-25 17:58:19 | [diff] [blame] | 8 | #include <map> |
raymes | e3afee6b | 2016-04-18 02:00:50 | [diff] [blame] | 9 | #include <unordered_map> |
| 10 | |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 11 | #include "base/callback_forward.h" |
James Hollyer | d281a731 | 2021-04-29 21:07:59 | [diff] [blame] | 12 | #include "base/containers/flat_map.h" |
Brett Wilson | f976d3f | 2017-08-18 17:23:39 | [diff] [blame] | 13 | #include "base/containers/id_map.h" |
Keishi Hattori | 0e45c02 | 2021-11-27 09:25:52 | [diff] [blame] | 14 | #include "base/memory/raw_ptr.h" |
mlamouri | 23957a2 | 2015-04-01 10:37:56 | [diff] [blame] | 15 | #include "components/content_settings/core/browser/content_settings_observer.h" |
lalitm | 27583e9 | 2015-10-02 11:34:17 | [diff] [blame] | 16 | #include "components/content_settings/core/common/content_settings.h" |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 17 | #include "components/keyed_service/core/keyed_service.h" |
James Hollyer | d281a731 | 2021-04-29 21:07:59 | [diff] [blame] | 18 | #include "components/permissions/permission_context_base.h" |
Balazs Engedy | e15473b | 2021-04-14 09:09:21 | [diff] [blame] | 19 | #include "components/permissions/permission_request_id.h" |
Clark DuVall | 732778e | 2020-01-27 18:13:58 | [diff] [blame] | 20 | #include "components/permissions/permission_util.h" |
Andrey Lushnikov | f350010 | 2018-07-16 19:55:22 | [diff] [blame] | 21 | #include "content/public/browser/permission_controller_delegate.h" |
Pavel Feldman | 73b2202 | 2018-11-02 02:55:30 | [diff] [blame] | 22 | #include "content/public/browser/permission_type.h" |
Rohan Pavone | faf6457 | 2019-07-30 17:50:20 | [diff] [blame] | 23 | #include "url/origin.h" |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 24 | |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 25 | namespace content { |
| 26 | class BrowserContext; |
Robbie McElrath | 8d5602a | 2022-04-01 17:39:18 | [diff] [blame] | 27 | class RenderFrameHost; |
| 28 | class RenderProcessHost; |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 29 | } |
| 30 | |
Illia Klimov | 770b145f | 2022-04-20 17:19:09 | [diff] [blame^] | 31 | class GeolocationPermissionContextDelegateTests; |
| 32 | class SubscriptionInterceptingPermissionManager; |
| 33 | |
Clark DuVall | 484c256 | 2020-01-23 22:05:09 | [diff] [blame] | 34 | namespace permissions { |
Clark DuVall | a11361ad3 | 2020-02-20 22:14:27 | [diff] [blame] | 35 | class PermissionContextBase; |
timloh | c691180 | 2017-03-01 05:37:03 | [diff] [blame] | 36 | struct PermissionResult; |
Illia Klimov | 770b145f | 2022-04-20 17:19:09 | [diff] [blame^] | 37 | class PermissionManagerTest; |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 38 | |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 39 | class PermissionManager : public KeyedService, |
Andrey Lushnikov | f350010 | 2018-07-16 19:55:22 | [diff] [blame] | 40 | public content::PermissionControllerDelegate, |
James Hollyer | d281a731 | 2021-04-29 21:07:59 | [diff] [blame] | 41 | public permissions::Observer { |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 42 | public: |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 43 | using PermissionContextMap = |
| 44 | std::unordered_map<ContentSettingsType, |
| 45 | std::unique_ptr<PermissionContextBase>, |
| 46 | ContentSettingsTypeHash>; |
| 47 | PermissionManager(content::BrowserContext* browser_context, |
| 48 | PermissionContextMap permission_contexts); |
Peter Boström | 09c0182 | 2021-09-20 22:43:27 | [diff] [blame] | 49 | |
| 50 | PermissionManager(const PermissionManager&) = delete; |
| 51 | PermissionManager& operator=(const PermissionManager&) = delete; |
| 52 | |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 53 | ~PermissionManager() override; |
| 54 | |
Marc Treib | 9e4bd92 | 2017-09-25 08:32:13 | [diff] [blame] | 55 | // Converts from |url|'s actual origin to the "canonical origin" that should |
| 56 | // be used for the purpose of requesting/storing permissions. For example, the |
Raymes Khoury | b474c64 | 2018-02-28 06:16:28 | [diff] [blame] | 57 | // origin of the local NTP gets mapped to the Google base URL instead. With |
| 58 | // Permission Delegation it will transform the requesting origin into |
| 59 | // the embedding origin because all permission checks happen on the top level |
| 60 | // origin. |
| 61 | // |
| 62 | // All the public methods below, such as RequestPermission or |
| 63 | // GetPermissionStatus, take the actual origin and do the canonicalization |
| 64 | // internally. You only need to call this directly if you do something else |
| 65 | // with the origin, such as display it in the UI. |
Balazs Engedy | f39e22b | 2019-07-30 11:16:24 | [diff] [blame] | 66 | GURL GetCanonicalOrigin(ContentSettingsType permission, |
| 67 | const GURL& requesting_origin, |
Raymes Khoury | b474c64 | 2018-02-28 06:16:28 | [diff] [blame] | 68 | const GURL& embedding_origin) const; |
Marc Treib | 9e4bd92 | 2017-09-25 08:32:13 | [diff] [blame] | 69 | |
Illia Klimov | 770b145f | 2022-04-20 17:19:09 | [diff] [blame^] | 70 | // This method is deprecated. Use `GetPermissionStatusForCurrentDocument` |
| 71 | // instead or `GetPermissionStatusForDisplayOnSettingsUI`. |
| 72 | PermissionResult GetPermissionStatusDeprecated(ContentSettingsType permission, |
| 73 | const GURL& requesting_origin, |
| 74 | const GURL& embedding_origin); |
| 75 | |
| 76 | // Returns the permission status for a given `permission` and displayed, |
| 77 | // top-level `origin`. This should be used only for displaying on the |
| 78 | // browser's native UI (PageInfo, Settings, etc.). This method does not take |
| 79 | // context specific restrictions (e.g. permission policy) into consideration. |
| 80 | PermissionResult GetPermissionStatusForDisplayOnSettingsUI( |
| 81 | ContentSettingsType permission, |
| 82 | const GURL& origin); |
| 83 | |
| 84 | // Returns the status for the given `permission` on behalf of the last |
| 85 | // committed document in `render_frame_host`, also performing additional |
| 86 | // checks such as Permission Policy. |
| 87 | PermissionResult GetPermissionStatusForCurrentDocument( |
| 88 | ContentSettingsType permission, |
| 89 | content::RenderFrameHost* render_frame_host); |
| 90 | |
| 91 | // KeyedService implementation. |
| 92 | void Shutdown() override; |
| 93 | |
| 94 | // Requests the given `permission` on behalf of the last committed document in |
| 95 | // `render_frame_host`, also performing additional checks such as Permission |
| 96 | // Policy. |
| 97 | void RequestPermissionsFromCurrentDocument( |
| 98 | const std::vector<ContentSettingsType>& permissions, |
| 99 | content::RenderFrameHost* render_frame_host, |
| 100 | bool user_gesture, |
| 101 | base::OnceCallback<void(const std::vector<ContentSetting>&)> callback); |
| 102 | |
| 103 | PermissionContextBase* GetPermissionContextForTesting( |
| 104 | ContentSettingsType type); |
| 105 | |
| 106 | PermissionContextMap& PermissionContextsForTesting() { |
| 107 | return permission_contexts_; |
| 108 | } |
| 109 | |
| 110 | private: |
| 111 | friend class PermissionManagerTest; |
| 112 | friend class ::GeolocationPermissionContextDelegateTests; |
| 113 | friend class ::SubscriptionInterceptingPermissionManager; |
| 114 | |
| 115 | // The `PendingRequestLocalId` will be unique within the `PermissionManager` |
| 116 | // instance, thus within a `BrowserContext`, which overachieves the |
| 117 | // requirement from `PermissionRequestID` that the `RequestLocalId` be unique |
| 118 | // within each frame. |
| 119 | class PendingRequest; |
| 120 | using PendingRequestLocalId = PermissionRequestID::RequestLocalId; |
| 121 | using PendingRequestsMap = |
| 122 | base::IDMap<std::unique_ptr<PendingRequest>, PendingRequestLocalId>; |
| 123 | |
| 124 | class PermissionResponseCallback; |
| 125 | |
| 126 | struct Subscription; |
| 127 | using SubscriptionsMap = |
| 128 | base::IDMap<std::unique_ptr<Subscription>, SubscriptionId>; |
| 129 | using SubscriptionTypeCounts = base::flat_map<ContentSettingsType, size_t>; |
| 130 | |
| 131 | PermissionContextBase* GetPermissionContext(ContentSettingsType type); |
| 132 | |
timloh | 9a180ad | 2017-02-20 07:15:23 | [diff] [blame] | 133 | // Callers from within chrome/ should use the methods which take the |
| 134 | // ContentSettingsType enum. The methods which take PermissionType values |
Andrey Lushnikov | f350010 | 2018-07-16 19:55:22 | [diff] [blame] | 135 | // are for the content::PermissionControllerDelegate overrides and shouldn't |
| 136 | // be used from chrome/. |
Illia Klimov | fa8fa51 | 2021-07-14 20:36:34 | [diff] [blame] | 137 | // Deprecated. Use `RequestPermissionFromCurrentDocument` instead. |
Balazs Engedy | e30e961 | 2021-04-02 10:37:29 | [diff] [blame] | 138 | void RequestPermission(ContentSettingsType permission, |
| 139 | content::RenderFrameHost* render_frame_host, |
| 140 | const GURL& requesting_origin, |
| 141 | bool user_gesture, |
| 142 | base::OnceCallback<void(ContentSetting)> callback); |
Illia Klimov | 770b145f | 2022-04-20 17:19:09 | [diff] [blame^] | 143 | |
Illia Klimov | fa8fa51 | 2021-07-14 20:36:34 | [diff] [blame] | 144 | // Deprecated. Use `RequestPermissionsFromCurrentDocument` instead. |
Balazs Engedy | e30e961 | 2021-04-02 10:37:29 | [diff] [blame] | 145 | void RequestPermissions( |
timloh | 592d732 | 2017-02-23 07:23:54 | [diff] [blame] | 146 | const std::vector<ContentSettingsType>& permissions, |
| 147 | content::RenderFrameHost* render_frame_host, |
| 148 | const GURL& requesting_origin, |
| 149 | bool user_gesture, |
danakj | 47c8fb5 | 2019-05-02 16:34:36 | [diff] [blame] | 150 | base::OnceCallback<void(const std::vector<ContentSetting>&)> callback); |
Illia Klimov | fa8fa51 | 2021-07-14 20:36:34 | [diff] [blame] | 151 | void RequestPermissionFromCurrentDocument( |
| 152 | ContentSettingsType permission, |
| 153 | content::RenderFrameHost* render_frame_host, |
| 154 | bool user_gesture, |
| 155 | base::OnceCallback<void(ContentSetting)> callback); |
raymes | f6104d49 | 2017-03-09 01:20:18 | [diff] [blame] | 156 | // Returns the permission status for a given frame. This should be preferred |
| 157 | // over GetPermissionStatus as additional checks can be performed when we know |
| 158 | // the exact context the request is coming from. |
raymes | 79f22a61 | 2017-03-13 05:28:10 | [diff] [blame] | 159 | // TODO(raymes): Currently we still pass the |requesting_origin| as a separate |
| 160 | // parameter because we can't yet guarantee that it matches the last committed |
| 161 | // origin of the RenderFrameHost. See crbug.com/698985. |
Illia Klimov | fa8fa51 | 2021-07-14 20:36:34 | [diff] [blame] | 162 | // Deprecated. Use `GetPermissionStatusForCurrentDocument` instead. |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 163 | PermissionResult GetPermissionStatusForFrame( |
raymes | f6104d49 | 2017-03-09 01:20:18 | [diff] [blame] | 164 | ContentSettingsType permission, |
raymes | 79f22a61 | 2017-03-13 05:28:10 | [diff] [blame] | 165 | content::RenderFrameHost* render_frame_host, |
| 166 | const GURL& requesting_origin); |
raymes | f6104d49 | 2017-03-09 01:20:18 | [diff] [blame] | 167 | |
Robbie McElrath | 8d5602a | 2022-04-01 17:39:18 | [diff] [blame] | 168 | // Returns the status of the given `permission` for a worker on `origin` |
| 169 | // running in the renderer corresponding to `render_process_host`. |
| 170 | PermissionResult GetPermissionStatusForWorker( |
| 171 | ContentSettingsType permission, |
| 172 | content::RenderProcessHost* render_process_host, |
| 173 | const url::Origin& worker_origin); |
| 174 | |
Andrey Lushnikov | f350010 | 2018-07-16 19:55:22 | [diff] [blame] | 175 | // content::PermissionControllerDelegate implementation. |
Balazs Engedy | e30e961 | 2021-04-02 10:37:29 | [diff] [blame] | 176 | void RequestPermission( |
| 177 | content::PermissionType permission, |
| 178 | content::RenderFrameHost* render_frame_host, |
| 179 | const GURL& requesting_origin, |
| 180 | bool user_gesture, |
| 181 | base::OnceCallback<void(blink::mojom::PermissionStatus)> callback) |
| 182 | override; |
| 183 | void RequestPermissions( |
mlamouri | 8b5ec90 | 2015-10-24 00:52:03 | [diff] [blame] | 184 | const std::vector<content::PermissionType>& permissions, |
| 185 | content::RenderFrameHost* render_frame_host, |
| 186 | const GURL& requesting_origin, |
benwells | fd2b155 | 2016-07-05 04:26:53 | [diff] [blame] | 187 | bool user_gesture, |
danakj | 47c8fb5 | 2019-05-02 16:34:36 | [diff] [blame] | 188 | base::OnceCallback< |
| 189 | void(const std::vector<blink::mojom::PermissionStatus>&)> callback) |
leon.han | 06e5566 | 2016-03-26 17:19:42 | [diff] [blame] | 190 | override; |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 191 | void ResetPermission(content::PermissionType permission, |
| 192 | const GURL& requesting_origin, |
| 193 | const GURL& embedding_origin) override; |
mathp | cc29ae5 | 2016-05-04 15:22:17 | [diff] [blame] | 194 | blink::mojom::PermissionStatus GetPermissionStatus( |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 195 | content::PermissionType permission, |
| 196 | const GURL& requesting_origin, |
| 197 | const GURL& embedding_origin) override; |
Raymes Khoury | 4ead6c3 | 2018-03-07 04:43:48 | [diff] [blame] | 198 | blink::mojom::PermissionStatus GetPermissionStatusForFrame( |
| 199 | content::PermissionType permission, |
| 200 | content::RenderFrameHost* render_frame_host, |
| 201 | const GURL& requesting_origin) override; |
Illia Klimov | f284284 | 2022-03-22 11:33:39 | [diff] [blame] | 202 | blink::mojom::PermissionStatus GetPermissionStatusForCurrentDocument( |
| 203 | content::PermissionType permission, |
| 204 | content::RenderFrameHost* render_frame_host) override; |
Robbie McElrath | 8d5602a | 2022-04-01 17:39:18 | [diff] [blame] | 205 | blink::mojom::PermissionStatus GetPermissionStatusForWorker( |
| 206 | content::PermissionType permission, |
| 207 | content::RenderProcessHost* render_process_host, |
| 208 | const GURL& worker_origin) override; |
Pavel Feldman | 446a91b | 2020-03-13 17:39:55 | [diff] [blame] | 209 | bool IsPermissionOverridableByDevTools( |
| 210 | content::PermissionType permission, |
Anton Bikineev | 1156b5f | 2021-05-15 22:35:36 | [diff] [blame] | 211 | const absl::optional<url::Origin>& origin) override; |
Balazs Engedy | ad1489b | 2021-03-31 07:47:19 | [diff] [blame] | 212 | SubscriptionId SubscribePermissionStatusChange( |
mlamouri | 23957a2 | 2015-04-01 10:37:56 | [diff] [blame] | 213 | content::PermissionType permission, |
Robbie McElrath | 8d5602a | 2022-04-01 17:39:18 | [diff] [blame] | 214 | content::RenderProcessHost* render_process_host, |
Raymes Khoury | 3ef4f6e | 2018-08-09 09:34:48 | [diff] [blame] | 215 | content::RenderFrameHost* render_frame_host, |
mlamouri | 23957a2 | 2015-04-01 10:37:56 | [diff] [blame] | 216 | const GURL& requesting_origin, |
danakj | 47c8fb5 | 2019-05-02 16:34:36 | [diff] [blame] | 217 | base::RepeatingCallback<void(blink::mojom::PermissionStatus)> callback) |
mathp | cc29ae5 | 2016-05-04 15:22:17 | [diff] [blame] | 218 | override; |
Balazs Engedy | ad1489b | 2021-03-31 07:47:19 | [diff] [blame] | 219 | void UnsubscribePermissionStatusChange( |
| 220 | SubscriptionId subscription_id) override; |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 221 | |
mlamouri | 8b5ec90 | 2015-10-24 00:52:03 | [diff] [blame] | 222 | // Called when a permission was decided for a given PendingRequest. The |
Balazs Engedy | e15473b | 2021-04-14 09:09:21 | [diff] [blame] | 223 | // PendingRequest is identified by its |request_local_id| and the permission |
| 224 | // is identified by its |permission_id|. If the PendingRequest contains more |
| 225 | // than one permission, it will wait for the remaining permissions to be |
| 226 | // resolved. When all the permissions have been resolved, the PendingRequest's |
| 227 | // callback is run. |
| 228 | void OnPermissionsRequestResponseStatus( |
| 229 | PendingRequestLocalId request_local_id, |
| 230 | int permission_id, |
| 231 | ContentSetting status); |
lalitm | 27583e9 | 2015-10-02 11:34:17 | [diff] [blame] | 232 | |
James Hollyer | d281a731 | 2021-04-29 21:07:59 | [diff] [blame] | 233 | // permissions::Observer: |
| 234 | void OnPermissionChanged(const ContentSettingsPattern& primary_pattern, |
| 235 | const ContentSettingsPattern& secondary_pattern, |
Christian Dullweber | 2c4c71d | 2021-10-14 15:07:43 | [diff] [blame] | 236 | ContentSettingsTypeSet content_type_set) override; |
mlamouri | 23957a2 | 2015-04-01 10:37:56 | [diff] [blame] | 237 | |
Robbie McElrath | 8d5602a | 2022-04-01 17:39:18 | [diff] [blame] | 238 | // Only one of |render_process_host| and |render_frame_host| should be set, |
| 239 | // or neither. RenderProcessHost will be inferred from |render_frame_host|. |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 240 | PermissionResult GetPermissionStatusHelper( |
raymes | f6104d49 | 2017-03-09 01:20:18 | [diff] [blame] | 241 | ContentSettingsType permission, |
Robbie McElrath | 8d5602a | 2022-04-01 17:39:18 | [diff] [blame] | 242 | content::RenderProcessHost* render_process_host, |
raymes | f6104d49 | 2017-03-09 01:20:18 | [diff] [blame] | 243 | content::RenderFrameHost* render_frame_host, |
| 244 | const GURL& requesting_origin, |
| 245 | const GURL& embedding_origin); |
| 246 | |
Pavel Feldman | 73b2202 | 2018-11-02 02:55:30 | [diff] [blame] | 247 | ContentSetting GetPermissionOverrideForDevTools( |
Rohan Pavone | 8180cba6 | 2019-08-26 20:55:09 | [diff] [blame] | 248 | const url::Origin& origin, |
Pavel Feldman | 73b2202 | 2018-11-02 02:55:30 | [diff] [blame] | 249 | ContentSettingsType permission); |
| 250 | |
Illia Klimov | 770b145f | 2022-04-20 17:19:09 | [diff] [blame^] | 251 | // content::PermissionControllerDelegate implementation. |
| 252 | // For the given |origin|, overrides permissions that belong to |overrides|. |
| 253 | // These permissions are in-sync with the PermissionController. |
| 254 | void SetPermissionOverridesForDevTools( |
| 255 | const absl::optional<url::Origin>& origin, |
| 256 | const PermissionOverrides& overrides) override; |
| 257 | void ResetPermissionOverridesForDevTools() override; |
| 258 | |
Keishi Hattori | 0e45c02 | 2021-11-27 09:25:52 | [diff] [blame] | 259 | raw_ptr<content::BrowserContext> browser_context_; |
Balazs Engedy | e15473b | 2021-04-14 09:09:21 | [diff] [blame] | 260 | |
lalitm | 27583e9 | 2015-10-02 11:34:17 | [diff] [blame] | 261 | PendingRequestsMap pending_requests_; |
Balazs Engedy | e15473b | 2021-04-14 09:09:21 | [diff] [blame] | 262 | PendingRequestLocalId::Generator request_local_id_generator_; |
| 263 | |
mlamouri | 23957a2 | 2015-04-01 10:37:56 | [diff] [blame] | 264 | SubscriptionsMap subscriptions_; |
Balazs Engedy | ad1489b | 2021-03-31 07:47:19 | [diff] [blame] | 265 | SubscriptionId::Generator subscription_id_generator_; |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 266 | |
James Hollyer | d281a731 | 2021-04-29 21:07:59 | [diff] [blame] | 267 | // Tracks the number of Subscriptions in |subscriptions_| which have a |
| 268 | // certain ContentSettingsType. An entry for a given ContentSettingsType key |
| 269 | // is added on first use and never removed. This is done to utilize the |
| 270 | // flat_map's efficiency in accessing/editing items and minimize the use of |
| 271 | // the unefficient addition/removal of items. |
| 272 | SubscriptionTypeCounts subscription_type_counts_; |
| 273 | |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 274 | PermissionContextMap permission_contexts_; |
Rohan Pavone | faf6457 | 2019-07-30 17:50:20 | [diff] [blame] | 275 | using ContentSettingsTypeOverrides = |
| 276 | base::flat_map<ContentSettingsType, ContentSetting>; |
| 277 | std::map<url::Origin, ContentSettingsTypeOverrides> |
| 278 | devtools_permission_overrides_; |
Pavel Feldman | 446a91b | 2020-03-13 17:39:55 | [diff] [blame] | 279 | url::Origin devtools_global_overrides_origin_; |
raymes | e3afee6b | 2016-04-18 02:00:50 | [diff] [blame] | 280 | |
Alexey Baskakov | 386f174 | 2019-09-03 04:08:47 | [diff] [blame] | 281 | bool is_shutting_down_ = false; |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 282 | }; |
| 283 | |
Clark DuVall | 6b73c74 | 2020-03-11 19:00:15 | [diff] [blame] | 284 | } // namespace permissions |
| 285 | |
| 286 | #endif // COMPONENTS_PERMISSIONS_PERMISSION_MANAGER_H_ |