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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Returns the URL leading to a search page for Web Intents. The search is | 24 // Returns the URL leading to a search page for Web Intents. The search is |
25 // specific to intents with the given |action| and |type|. | 25 // specific to intents with the given |action| and |type|. |
26 GURL GetWebstoreIntentQueryURL(const std::string& action, | 26 GURL GetWebstoreIntentQueryURL(const std::string& action, |
27 const std::string& type); | 27 const std::string& type); |
28 | 28 |
29 // Returns the URL used to get webstore data (ratings, manifest, icon URL, | 29 // Returns the URL used to get webstore data (ratings, manifest, icon URL, |
30 // etc.) about an extension from the webstore as JSON. | 30 // etc.) about an extension from the webstore as JSON. |
31 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); | 31 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); |
32 | 32 |
33 // Return the update URL used by gallery/webstore extensions/apps. The | 33 // Return the update URL used by gallery/webstore extensions/apps. |
34 // |secure| parameter will be ignored if the update URL is overriden with | 34 GURL GetWebstoreUpdateUrl(); |
35 // --apps-gallery-update-url. | |
36 GURL GetWebstoreUpdateUrl(bool secure); | |
37 | 35 |
38 // Returns whether the URL is the webstore update URL (secure or not). | 36 // Returns whether the URL is the webstore update URL (just considering host |
| 37 // and path, not scheme, query, etc.) |
39 bool IsWebstoreUpdateUrl(const GURL& update_url); | 38 bool IsWebstoreUpdateUrl(const GURL& update_url); |
40 | 39 |
41 // Returns true if the URL points to an extension blacklist. | 40 // Returns true if the URL points to an extension blacklist. |
42 bool IsBlacklistUpdateUrl(const GURL& url); | 41 bool IsBlacklistUpdateUrl(const GURL& url); |
43 | 42 |
44 // The greatest common prefixes of the main extensions gallery's browse and | 43 // The greatest common prefixes of the main extensions gallery's browse and |
45 // download URLs. | 44 // download URLs. |
46 extern const char kGalleryBrowsePrefix[]; | 45 extern const char kGalleryBrowsePrefix[]; |
47 } // namespace extension_urls | 46 } // namespace extension_urls |
48 | 47 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 extern const char kAppStateRunning[]; | 250 extern const char kAppStateRunning[]; |
252 extern const char kAppStateCannotRun[]; | 251 extern const char kAppStateCannotRun[]; |
253 extern const char kAppStateReadyToRun[]; | 252 extern const char kAppStateReadyToRun[]; |
254 | 253 |
255 // 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 |
256 // mode extensions in incognito windows. | 255 // mode extensions in incognito windows. |
257 extern const char kAppNotificationsIncognitoError[]; | 256 extern const char kAppNotificationsIncognitoError[]; |
258 } // extension_misc | 257 } // extension_misc |
259 | 258 |
260 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 259 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |