| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class ImageSkia; | 49 class ImageSkia; |
| 50 } | 50 } |
| 51 | 51 |
| 52 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); | 52 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); |
| 53 | 53 |
| 54 namespace extensions { | 54 namespace extensions { |
| 55 struct ActionInfo; | 55 struct ActionInfo; |
| 56 class PermissionSet; | 56 class PermissionSet; |
| 57 | 57 |
| 58 // Represents a Chrome extension. | 58 // Represents a Chrome extension. |
| 59 // Once created, an Extension object is immutable, with the exception of its |
| 60 // RuntimeData. This makes it safe to use on any thread, since access to the |
| 61 // RuntimeData is protected by a lock. |
| 59 class Extension : public base::RefCountedThreadSafe<Extension> { | 62 class Extension : public base::RefCountedThreadSafe<Extension> { |
| 60 public: | 63 public: |
| 61 struct ManifestData; | 64 struct ManifestData; |
| 62 | 65 |
| 63 typedef std::vector<std::string> ScriptingWhitelist; | 66 typedef std::vector<std::string> ScriptingWhitelist; |
| 64 typedef std::map<const std::string, linked_ptr<ManifestData> > | 67 typedef std::map<const std::string, linked_ptr<ManifestData> > |
| 65 ManifestDataMap; | 68 ManifestDataMap; |
| 66 | 69 |
| 67 enum State { | 70 enum State { |
| 68 DISABLED = 0, | 71 DISABLED = 0, |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 | 964 |
| 962 UpdatedExtensionPermissionsInfo( | 965 UpdatedExtensionPermissionsInfo( |
| 963 const Extension* extension, | 966 const Extension* extension, |
| 964 const PermissionSet* permissions, | 967 const PermissionSet* permissions, |
| 965 Reason reason); | 968 Reason reason); |
| 966 }; | 969 }; |
| 967 | 970 |
| 968 } // namespace extensions | 971 } // namespace extensions |
| 969 | 972 |
| 970 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 973 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |