| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Max size (both dimensions) for browser and page actions. | 85 // Max size (both dimensions) for browser and page actions. |
| 86 static const int kPageActionIconMaxSize; | 86 static const int kPageActionIconMaxSize; |
| 87 static const int kBrowserActionIconMaxSize; | 87 static const int kBrowserActionIconMaxSize; |
| 88 | 88 |
| 89 // Each permission is a module that the extension is permitted to use. | 89 // Each permission is a module that the extension is permitted to use. |
| 90 static const char* kTabPermission; | 90 static const char* kTabPermission; |
| 91 static const char* kBookmarkPermission; | 91 static const char* kBookmarkPermission; |
| 92 static const char* kNotificationPermission; | 92 static const char* kNotificationPermission; |
| 93 static const char* kExperimentalPermission; | 93 static const char* kExperimentalPermission; |
| 94 static const char* kUnlimitedStoragePermission; | 94 static const char* kUnlimitedStoragePermission; |
| 95 static const char* kHistoryPermission; |
| 95 | 96 |
| 96 static const char* kPermissionNames[]; | 97 static const char* kPermissionNames[]; |
| 97 static const size_t kNumPermissions; | 98 static const size_t kNumPermissions; |
| 98 | 99 |
| 99 // An NPAPI plugin included in the extension. | 100 // An NPAPI plugin included in the extension. |
| 100 struct PluginInfo { | 101 struct PluginInfo { |
| 101 FilePath path; // Path to the plugin. | 102 FilePath path; // Path to the plugin. |
| 102 bool is_public; // False if only this extension can load this plugin. | 103 bool is_public; // False if only this extension can load this plugin. |
| 103 }; | 104 }; |
| 104 | 105 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 scoped_ptr<DictionaryValue> extension_manifest; | 526 scoped_ptr<DictionaryValue> extension_manifest; |
| 526 std::string extension_id; | 527 std::string extension_id; |
| 527 FilePath extension_path; | 528 FilePath extension_path; |
| 528 Extension::Location extension_location; | 529 Extension::Location extension_location; |
| 529 | 530 |
| 530 private: | 531 private: |
| 531 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 532 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
| 532 }; | 533 }; |
| 533 | 534 |
| 534 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 535 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |