OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
10 | 12 |
11 // Keys used in JSON representation of extensions. | 13 // Keys used in JSON representation of extensions. |
12 namespace extension_manifest_keys { | 14 namespace extension_manifest_keys { |
13 extern const char* kAllFrames; | 15 extern const char* kAllFrames; |
14 extern const char* kAltKey; | 16 extern const char* kAltKey; |
15 extern const char* kApp; | 17 extern const char* kApp; |
16 extern const char* kBackground; | 18 extern const char* kBackground; |
17 extern const char* kBrowserAction; | 19 extern const char* kBrowserAction; |
18 extern const char* kBrowseURLs; | 20 extern const char* kBrowseURLs; |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 INSTALL_CAUSE_EXTERNAL_FILE, | 411 INSTALL_CAUSE_EXTERNAL_FILE, |
410 INSTALL_CAUSE_AUTOMATION, | 412 INSTALL_CAUSE_AUTOMATION, |
411 NUM_INSTALL_CAUSES | 413 NUM_INSTALL_CAUSES |
412 }; | 414 }; |
413 | 415 |
414 enum UnloadedExtensionReason { | 416 enum UnloadedExtensionReason { |
415 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 417 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
416 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 418 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
417 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 419 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
418 }; | 420 }; |
| 421 |
| 422 // Returns the URL prefix for the extension/apps gallery. Can be set via the |
| 423 // --apps-gallery-url switch. The URL returned will not contain a trailing |
| 424 // slash. Do not use this as a prefix/extent for the store. Instead see |
| 425 // ExtensionService::GetWebStoreApp or |
| 426 // ExtensionService::IsDownloadFromGallery |
| 427 std::string GetWebstoreLaunchURL(); |
| 428 |
| 429 // Returns the URL prefix for an item in the extension/app gallery. This URL |
| 430 // will contain a trailing slash and should be concatenated with an item ID |
| 431 // to get the item detail URL. |
| 432 std::string GetWebstoreItemDetailURLPrefix(); |
419 } // extension_misc | 433 } // extension_misc |
420 | 434 |
421 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 435 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |