| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 | 13 |
| 14 namespace extension_urls { | 14 namespace extension_urls { |
| 15 // Returns the URL prefix for the extension/apps gallery. Can be set via the | 15 // Returns the URL prefix for the extension/apps gallery. Can be set via the |
| 16 // --apps-gallery-url switch. The URL returned will not contain a trailing | 16 // --apps-gallery-url switch. The URL returned will not contain a trailing |
| 17 // slash. Do not use this as a prefix/extent for the store. Instead see | 17 // slash. Do not use this as a prefix/extent for the store. |
| 18 // ExtensionService::GetWebStoreApp or | |
| 19 // ExtensionService::IsDownloadFromGallery | |
| 20 std::string GetWebstoreLaunchURL(); | 18 std::string GetWebstoreLaunchURL(); |
| 21 | 19 |
| 22 // Returns the URL prefix for an item in the extension/app gallery. This URL | 20 // Returns the URL prefix for an item in the extension/app gallery. This URL |
| 23 // will contain a trailing slash and should be concatenated with an item ID | 21 // will contain a trailing slash and should be concatenated with an item ID |
| 24 // to get the item detail URL. | 22 // to get the item detail URL. |
| 25 std::string GetWebstoreItemDetailURLPrefix(); | 23 std::string GetWebstoreItemDetailURLPrefix(); |
| 26 | 24 |
| 27 // Returns the URL leading to a search page for Web Intents. The search is | 25 // Returns the URL leading to a search page for Web Intents. The search is |
| 28 // specific to intents with the given |action| and |type|. | 26 // specific to intents with the given |action| and |type|. |
| 29 GURL GetWebstoreIntentQueryURL(const std::string& action, | 27 GURL GetWebstoreIntentQueryURL(const std::string& action, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 extern const char kAppStateRunning[]; | 250 extern const char kAppStateRunning[]; |
| 253 extern const char kAppStateCannotRun[]; | 251 extern const char kAppStateCannotRun[]; |
| 254 extern const char kAppStateReadyToRun[]; | 252 extern const char kAppStateReadyToRun[]; |
| 255 | 253 |
| 256 // Error indicating that the app notifications API is not accessible by split | 254 // Error indicating that the app notifications API is not accessible by split |
| 257 // mode extensions in incognito windows. | 255 // mode extensions in incognito windows. |
| 258 extern const char kAppNotificationsIncognitoError[]; | 256 extern const char kAppNotificationsIncognitoError[]; |
| 259 } // extension_misc | 257 } // extension_misc |
| 260 | 258 |
| 261 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 259 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |