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 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/file_path.h" | 16 #include "base/file_path.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/hash_tables.h" | 18 #include "base/hash_tables.h" |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
23 #include "chrome/common/extensions/command.h" | 23 #include "chrome/common/extensions/command.h" |
24 #include "chrome/common/extensions/extension_action.h" | 24 #include "chrome/common/extensions/extension_action.h" |
25 #include "chrome/common/extensions/extension_constants.h" | 25 #include "chrome/common/extensions/extension_constants.h" |
26 #include "chrome/common/extensions/extension_icon_set.h" | 26 #include "chrome/common/extensions/extension_icon_set.h" |
27 #include "chrome/common/extensions/permissions/permission_set.h" | 27 #include "chrome/common/extensions/permissions/api_permission.h" |
| 28 #include "chrome/common/extensions/permissions/permission_message.h" |
28 #include "chrome/common/extensions/user_script.h" | 29 #include "chrome/common/extensions/user_script.h" |
29 #include "chrome/common/extensions/url_pattern.h" | 30 #include "chrome/common/extensions/url_pattern.h" |
30 #include "chrome/common/extensions/url_pattern_set.h" | 31 #include "chrome/common/extensions/url_pattern_set.h" |
31 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
32 #include "ui/base/accelerators/accelerator.h" | 33 #include "ui/base/accelerators/accelerator.h" |
33 #include "ui/gfx/size.h" | 34 #include "ui/gfx/size.h" |
34 | 35 |
35 class ExtensionResource; | 36 class ExtensionResource; |
36 class FileBrowserHandler; | 37 class FileBrowserHandler; |
37 class SkBitmap; | 38 class SkBitmap; |
38 class Version; | 39 class Version; |
39 | 40 |
40 namespace base { | 41 namespace base { |
41 class DictionaryValue; | 42 class DictionaryValue; |
42 class ListValue; | 43 class ListValue; |
43 } | 44 } |
44 | 45 |
45 namespace webkit_glue { | 46 namespace webkit_glue { |
46 struct WebIntentServiceData; | 47 struct WebIntentServiceData; |
47 } | 48 } |
48 | 49 |
49 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); | 50 FORWARD_DECLARE_TEST(TabStripModelTest, Apps); |
50 | 51 |
51 namespace extensions { | 52 namespace extensions { |
52 | 53 |
53 class Manifest; | 54 class Manifest; |
| 55 class PermissionSet; |
54 | 56 |
55 typedef std::set<std::string> OAuth2Scopes; | 57 typedef std::set<std::string> OAuth2Scopes; |
56 | 58 |
57 // Represents a Chrome extension. | 59 // Represents a Chrome extension. |
58 class Extension : public base::RefCountedThreadSafe<Extension> { | 60 class Extension : public base::RefCountedThreadSafe<Extension> { |
59 public: | 61 public: |
60 struct InstallWarning; | 62 struct InstallWarning; |
61 | 63 |
62 typedef std::map<const std::string, GURL> URLOverrideMap; | 64 typedef std::map<const std::string, GURL> URLOverrideMap; |
63 typedef std::vector<std::string> ScriptingWhitelist; | 65 typedef std::vector<std::string> ScriptingWhitelist; |
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 | 1189 |
1188 UpdatedExtensionPermissionsInfo( | 1190 UpdatedExtensionPermissionsInfo( |
1189 const Extension* extension, | 1191 const Extension* extension, |
1190 const PermissionSet* permissions, | 1192 const PermissionSet* permissions, |
1191 Reason reason); | 1193 Reason reason); |
1192 }; | 1194 }; |
1193 | 1195 |
1194 } // namespace extensions | 1196 } // namespace extensions |
1195 | 1197 |
1196 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1198 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |