OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <iosfwd> | 10 #include <iosfwd> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 namespace webkit_glue { | 46 namespace webkit_glue { |
47 struct WebIntentServiceData; | 47 struct WebIntentServiceData; |
48 } | 48 } |
49 | 49 |
50 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); | 50 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); |
51 | 51 |
52 namespace extensions { | 52 namespace extensions { |
53 | 53 |
54 class Manifest; | 54 class Manifest; |
| 55 class RequirementsProvider; |
55 | 56 |
56 // Represents a Chrome extension. | 57 // Represents a Chrome extension. |
57 class Extension : public base::RefCountedThreadSafe<Extension> { | 58 class Extension : public base::RefCountedThreadSafe<Extension> { |
58 public: | 59 public: |
59 struct InstallWarning; | 60 struct InstallWarning; |
60 | 61 |
61 typedef std::map<const std::string, GURL> URLOverrideMap; | 62 typedef std::map<const std::string, GURL> URLOverrideMap; |
62 typedef std::vector<std::string> ScriptingWhitelist; | 63 typedef std::vector<std::string> ScriptingWhitelist; |
63 typedef std::vector<linked_ptr<FileBrowserHandler> > FileBrowserHandlerList; | 64 typedef std::vector<linked_ptr<FileBrowserHandler> > FileBrowserHandlerList; |
64 typedef std::vector<InstallWarning> InstallWarningVector; | 65 typedef std::vector<InstallWarning> InstallWarningVector; |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 // only the permissions that have added, and for Reason::REMOVED, this would | 1177 // only the permissions that have added, and for Reason::REMOVED, this would |
1177 // only contain the removed permissions. | 1178 // only contain the removed permissions. |
1178 const PermissionSet* permissions; | 1179 const PermissionSet* permissions; |
1179 | 1180 |
1180 UpdatedExtensionPermissionsInfo( | 1181 UpdatedExtensionPermissionsInfo( |
1181 const Extension* extension, | 1182 const Extension* extension, |
1182 const PermissionSet* permissions, | 1183 const PermissionSet* permissions, |
1183 Reason reason); | 1184 Reason reason); |
1184 }; | 1185 }; |
1185 | 1186 |
1186 } // namespace extensions | 1187 } // namespace extensions |
1187 | 1188 |
1188 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1189 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |