OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_DATA_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_DATA_H_ |
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_DATA_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_DATA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "extensions/common/manifest.h" | 15 #include "extensions/common/manifest.h" |
16 #include "extensions/common/permissions/api_permission.h" | 16 #include "extensions/common/permissions/api_permission.h" |
17 #include "extensions/common/permissions/coalesced_permission_message.h" | 17 #include "extensions/common/permissions/coalesced_permission_message.h" |
18 #include "extensions/common/permissions/permission_message.h" | |
19 #include "extensions/common/permissions/permission_message_provider.h" | 18 #include "extensions/common/permissions/permission_message_provider.h" |
20 #include "extensions/common/permissions/permission_set.h" | 19 #include "extensions/common/permissions/permission_set.h" |
21 | 20 |
22 class GURL; | 21 class GURL; |
23 | 22 |
24 namespace extensions { | 23 namespace extensions { |
25 class Extension; | 24 class Extension; |
26 class URLPatternSet; | 25 class URLPatternSet; |
27 | 26 |
28 // A container for the permissions state of an extension, including active, | 27 // A container for the permissions state of an extension, including active, |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 mutable scoped_refptr<const PermissionSet> withheld_permissions_unsafe_; | 252 mutable scoped_refptr<const PermissionSet> withheld_permissions_unsafe_; |
254 | 253 |
255 mutable TabPermissionsMap tab_specific_permissions_; | 254 mutable TabPermissionsMap tab_specific_permissions_; |
256 | 255 |
257 DISALLOW_COPY_AND_ASSIGN(PermissionsData); | 256 DISALLOW_COPY_AND_ASSIGN(PermissionsData); |
258 }; | 257 }; |
259 | 258 |
260 } // namespace extensions | 259 } // namespace extensions |
261 | 260 |
262 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_DATA_H_ | 261 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_DATA_H_ |
OLD | NEW |