| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 enum Icons { | 58 enum Icons { |
| 59 EXTENSION_ICON_LARGE = 128, | 59 EXTENSION_ICON_LARGE = 128, |
| 60 EXTENSION_ICON_MEDIUM = 48, | 60 EXTENSION_ICON_MEDIUM = 48, |
| 61 EXTENSION_ICON_SMALL = 32, | 61 EXTENSION_ICON_SMALL = 32, |
| 62 EXTENSION_ICON_BITTY = 16, | 62 EXTENSION_ICON_BITTY = 16, |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // Icon sizes used by the extension system. | 65 // Icon sizes used by the extension system. |
| 66 static const int kIconSizes[]; | 66 static const int kIconSizes[]; |
| 67 | 67 |
| 68 // Max size (both dimensions) for browser and page actions. |
| 69 static const int kPageActionIconMaxSize; |
| 70 static const int kBrowserActionIconMaxSize; |
| 71 |
| 68 // Each permission is a module that the extension is permitted to use. | 72 // Each permission is a module that the extension is permitted to use. |
| 69 static const char* kPermissionNames[]; | 73 static const char* kPermissionNames[]; |
| 70 static const size_t kNumPermissions; | 74 static const size_t kNumPermissions; |
| 71 | 75 |
| 72 struct PrivacyBlacklistInfo { | 76 struct PrivacyBlacklistInfo { |
| 73 FilePath path; // Path to the plain-text blacklist. | 77 FilePath path; // Path to the plain-text blacklist. |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 // An NPAPI plugin included in the extension. | 80 // An NPAPI plugin included in the extension. |
| 77 struct PluginInfo { | 81 struct PluginInfo { |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 386 |
| 383 // True if the background page is ready. | 387 // True if the background page is ready. |
| 384 bool background_page_ready_; | 388 bool background_page_ready_; |
| 385 | 389 |
| 386 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); | 390 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); |
| 387 | 391 |
| 388 DISALLOW_COPY_AND_ASSIGN(Extension); | 392 DISALLOW_COPY_AND_ASSIGN(Extension); |
| 389 }; | 393 }; |
| 390 | 394 |
| 391 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 395 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |