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 CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 27 matching lines...) Expand all Loading... |
38 class Version; | 38 class Version; |
39 } | 39 } |
40 | 40 |
41 namespace gfx { | 41 namespace gfx { |
42 class ImageSkia; | 42 class ImageSkia; |
43 } | 43 } |
44 | 44 |
45 namespace extensions { | 45 namespace extensions { |
46 class PermissionsData; | 46 class PermissionsData; |
47 class APIPermissionSet; | 47 class APIPermissionSet; |
| 48 class ManifestPermissionSet; |
48 class PermissionSet; | 49 class PermissionSet; |
49 | 50 |
50 // Represents a Chrome extension. | 51 // Represents a Chrome extension. |
51 // Once created, an Extension object is immutable, with the exception of its | 52 // Once created, an Extension object is immutable, with the exception of its |
52 // RuntimeData. This makes it safe to use on any thread, since access to the | 53 // RuntimeData. This makes it safe to use on any thread, since access to the |
53 // RuntimeData is protected by a lock. | 54 // RuntimeData is protected by a lock. |
54 class Extension : public base::RefCountedThreadSafe<Extension> { | 55 class Extension : public base::RefCountedThreadSafe<Extension> { |
55 public: | 56 public: |
56 struct ManifestData; | 57 struct ManifestData; |
57 | 58 |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 523 |
523 UpdatedExtensionPermissionsInfo( | 524 UpdatedExtensionPermissionsInfo( |
524 const Extension* extension, | 525 const Extension* extension, |
525 const PermissionSet* permissions, | 526 const PermissionSet* permissions, |
526 Reason reason); | 527 Reason reason); |
527 }; | 528 }; |
528 | 529 |
529 } // namespace extensions | 530 } // namespace extensions |
530 | 531 |
531 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 532 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |