| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 static const int kPageActionIconMaxSize; | 70 static const int kPageActionIconMaxSize; |
| 71 static const int kBrowserActionIconMaxSize; | 71 static const int kBrowserActionIconMaxSize; |
| 72 | 72 |
| 73 // Each permission is a module that the extension is permitted to use. | 73 // Each permission is a module that the extension is permitted to use. |
| 74 static const char* kTabPermission; | 74 static const char* kTabPermission; |
| 75 static const char* kBookmarkPermission; | 75 static const char* kBookmarkPermission; |
| 76 | 76 |
| 77 static const char* kPermissionNames[]; | 77 static const char* kPermissionNames[]; |
| 78 static const size_t kNumPermissions; | 78 static const size_t kNumPermissions; |
| 79 | 79 |
| 80 // Experimental extension APIs are guarded by the following flag. |
| 81 static const char* kExperimentalName; |
| 82 |
| 80 struct PrivacyBlacklistInfo { | 83 struct PrivacyBlacklistInfo { |
| 81 FilePath path; // Path to the plain-text blacklist. | 84 FilePath path; // Path to the plain-text blacklist. |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 // An NPAPI plugin included in the extension. | 87 // An NPAPI plugin included in the extension. |
| 85 struct PluginInfo { | 88 struct PluginInfo { |
| 86 FilePath path; // Path to the plugin. | 89 FilePath path; // Path to the plugin. |
| 87 bool is_public; // False if only this extension can load this plugin. | 90 bool is_public; // False if only this extension can load this plugin. |
| 88 }; | 91 }; |
| 89 | 92 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 395 |
| 393 // True if the background page is ready. | 396 // True if the background page is ready. |
| 394 bool background_page_ready_; | 397 bool background_page_ready_; |
| 395 | 398 |
| 396 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); | 399 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); |
| 397 | 400 |
| 398 DISALLOW_COPY_AND_ASSIGN(Extension); | 401 DISALLOW_COPY_AND_ASSIGN(Extension); |
| 399 }; | 402 }; |
| 400 | 403 |
| 401 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 404 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |