OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 static const int kBrowserActionIconMaxSize; | 89 static const int kBrowserActionIconMaxSize; |
90 | 90 |
91 // Each permission is a module that the extension is permitted to use. | 91 // Each permission is a module that the extension is permitted to use. |
92 // | 92 // |
93 // NOTE: If you add a permission, consider also changing: | 93 // NOTE: If you add a permission, consider also changing: |
94 // - Extension::GetSimplePermissions() | 94 // - Extension::GetSimplePermissions() |
95 // - Extension::IsPrivilegeIncrease() | 95 // - Extension::IsPrivilegeIncrease() |
96 // - ExtensionInstallUI::GetV2Warnings() | 96 // - ExtensionInstallUI::GetV2Warnings() |
97 static const char* kBackgroundPermission; | 97 static const char* kBackgroundPermission; |
98 static const char* kBookmarkPermission; | 98 static const char* kBookmarkPermission; |
| 99 static const char* kContextMenusPermission; |
99 static const char* kCookiePermission; | 100 static const char* kCookiePermission; |
100 static const char* kExperimentalPermission; | 101 static const char* kExperimentalPermission; |
101 static const char* kGeolocationPermission; | 102 static const char* kGeolocationPermission; |
102 static const char* kHistoryPermission; | 103 static const char* kHistoryPermission; |
103 static const char* kIdlePermission; | 104 static const char* kIdlePermission; |
104 static const char* kNotificationPermission; | 105 static const char* kNotificationPermission; |
105 static const char* kTabPermission; | 106 static const char* kTabPermission; |
106 static const char* kUnlimitedStoragePermission; | 107 static const char* kUnlimitedStoragePermission; |
107 | 108 |
108 static const char* kPermissionNames[]; | 109 static const char* kPermissionNames[]; |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 scoped_ptr<DictionaryValue> extension_manifest; | 603 scoped_ptr<DictionaryValue> extension_manifest; |
603 std::string extension_id; | 604 std::string extension_id; |
604 FilePath extension_path; | 605 FilePath extension_path; |
605 Extension::Location extension_location; | 606 Extension::Location extension_location; |
606 | 607 |
607 private: | 608 private: |
608 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 609 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
609 }; | 610 }; |
610 | 611 |
611 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 612 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |