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