| 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_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 bool IsWebstoreUpdateUrl(const GURL& update_url); | 49 bool IsWebstoreUpdateUrl(const GURL& update_url); |
| 50 | 50 |
| 51 // Returns true if the URL points to an extension blacklist. | 51 // Returns true if the URL points to an extension blacklist. |
| 52 bool IsBlacklistUpdateUrl(const GURL& url); | 52 bool IsBlacklistUpdateUrl(const GURL& url); |
| 53 | 53 |
| 54 // The greatest common prefixes of the main extensions gallery's browse and | 54 // The greatest common prefixes of the main extensions gallery's browse and |
| 55 // download URLs. | 55 // download URLs. |
| 56 extern const char kGalleryBrowsePrefix[]; | 56 extern const char kGalleryBrowsePrefix[]; |
| 57 } // namespace extension_urls | 57 } // namespace extension_urls |
| 58 | 58 |
| 59 namespace extension_filenames { | |
| 60 // The name of a temporary directory to install an extension into for | |
| 61 // validation before finalizing install. | |
| 62 extern const char kTempExtensionName[]; | |
| 63 | |
| 64 // The file to write our decoded images to, relative to the extension_path. | |
| 65 extern const char kDecodedImagesFilename[]; | |
| 66 | |
| 67 // The file to write our decoded message catalogs to, relative to the | |
| 68 // extension_path. | |
| 69 extern const char kDecodedMessageCatalogsFilename[]; | |
| 70 | |
| 71 // The filename to use for a background page generated from | |
| 72 // background.scripts. | |
| 73 extern const char kGeneratedBackgroundPageFilename[]; | |
| 74 | |
| 75 // Path to imported modules. | |
| 76 extern const char kModulesDir[]; | |
| 77 } | |
| 78 | |
| 79 namespace extension_misc { | 59 namespace extension_misc { |
| 80 // Matches chrome.windows.WINDOW_ID_NONE. | 60 // Matches chrome.windows.WINDOW_ID_NONE. |
| 81 const int kUnknownWindowId = -1; | 61 const int kUnknownWindowId = -1; |
| 82 | 62 |
| 83 // Matches chrome.windows.WINDOW_ID_CURRENT. | 63 // Matches chrome.windows.WINDOW_ID_CURRENT. |
| 84 const int kCurrentWindowId = -2; | 64 const int kCurrentWindowId = -2; |
| 85 | 65 |
| 86 // The extension id of the bookmark manager. | 66 // The extension id of the bookmark manager. |
| 87 extern const char kBookmarkManagerId[]; | 67 extern const char kBookmarkManagerId[]; |
| 88 | 68 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // List of sizes for extension icons that can be defined in the manifest. | 314 // List of sizes for extension icons that can be defined in the manifest. |
| 335 extern const int kExtensionActionIconSizes[]; | 315 extern const int kExtensionActionIconSizes[]; |
| 336 extern const size_t kNumExtensionActionIconSizes; | 316 extern const size_t kNumExtensionActionIconSizes; |
| 337 | 317 |
| 338 // List of sizes for extension icons that can be defined in the manifest. | 318 // List of sizes for extension icons that can be defined in the manifest. |
| 339 extern const int kScriptBadgeIconSizes[]; | 319 extern const int kScriptBadgeIconSizes[]; |
| 340 extern const size_t kNumScriptBadgeIconSizes; | 320 extern const size_t kNumScriptBadgeIconSizes; |
| 341 } // namespace extension_misc | 321 } // namespace extension_misc |
| 342 | 322 |
| 343 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 323 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |