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> | 9 #include <string> |
10 | 10 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 // slash. Do not use this as a prefix/extent for the store. Instead see | 274 // slash. Do not use this as a prefix/extent for the store. Instead see |
275 // ExtensionService::GetWebStoreApp or | 275 // ExtensionService::GetWebStoreApp or |
276 // ExtensionService::IsDownloadFromGallery | 276 // ExtensionService::IsDownloadFromGallery |
277 std::string GetWebstoreLaunchURL(); | 277 std::string GetWebstoreLaunchURL(); |
278 | 278 |
279 // Returns the URL prefix for an item in the extension/app gallery. This URL | 279 // Returns the URL prefix for an item in the extension/app gallery. This URL |
280 // will contain a trailing slash and should be concatenated with an item ID | 280 // will contain a trailing slash and should be concatenated with an item ID |
281 // to get the item detail URL. | 281 // to get the item detail URL. |
282 std::string GetWebstoreItemDetailURLPrefix(); | 282 std::string GetWebstoreItemDetailURLPrefix(); |
283 | 283 |
| 284 // Returns the URL used to get webstore data (ratings, manifest, icon URL, |
| 285 // etc.) about an extension from the webstore as JSON. |
| 286 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); |
| 287 |
284 // Return the update URL used by gallery/webstore extensions/apps. The | 288 // Return the update URL used by gallery/webstore extensions/apps. The |
285 // |secure| parameter will be ignored if the update URL is overriden with | 289 // |secure| parameter will be ignored if the update URL is overriden with |
286 // --apps-gallery-update-url. | 290 // --apps-gallery-update-url. |
287 GURL GetWebstoreUpdateUrl(bool secure); | 291 GURL GetWebstoreUpdateUrl(bool secure); |
288 | 292 |
289 // Return the URL for an extension/app's .crx file that is hosted by the | 293 // Return the URL for an extension/app's .crx file that is hosted by the |
290 // webstore. | 294 // webstore. |
291 GURL GetWebstoreInstallUrl(const std::string& extension_id, | 295 GURL GetWebstoreInstallUrl(const std::string& extension_id, |
292 const std::string& locale); | 296 const std::string& locale); |
293 | 297 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 }; | 443 }; |
440 | 444 |
441 enum UnloadedExtensionReason { | 445 enum UnloadedExtensionReason { |
442 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 446 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
443 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 447 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
444 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 448 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
445 }; | 449 }; |
446 } // extension_misc | 450 } // extension_misc |
447 | 451 |
448 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 452 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |