Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4797)

Unified Diff: chrome/common/extensions/extension_constants.h

Issue 65163003: Move GetWebstoreLaunchURL and GetWebstoreItemDetailURLPrefix to extensions/common/extension_urls.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_constants.h
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index b1cf82d8782ed53264a0218f11617ff7140fdf16..1e14ea45e9934807ce4559dfe82e70f298f78e50 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -11,36 +11,6 @@
#include "url/gurl.h"
namespace extension_urls {
- // Returns the URL prefix for the extension/apps gallery. Can be set via the
- // --apps-gallery-url switch. The URL returned will not contain a trailing
- // slash. Do not use this as a prefix/extent for the store.
- std::string GetWebstoreLaunchURL();
-
- // Returns the URL to the extensions category on the Web Store. This is
- // derived from GetWebstoreLaunchURL().
- std::string GetExtensionGalleryURL();
-
- // Returns the URL prefix for an item in the extension/app gallery. This URL
- // will contain a trailing slash and should be concatenated with an item ID
- // to get the item detail URL.
- std::string GetWebstoreItemDetailURLPrefix();
-
- // Returns the URL used to get webstore data (ratings, manifest, icon URL,
- // etc.) about an extension from the webstore as JSON.
- GURL GetWebstoreItemJsonDataURL(const std::string& extension_id);
-
- // Returns the URL used to get webstore search results in JSON format. The URL
- // returns a JSON dictionary that has the search results (under "results").
- // Each entry in the array is a dictionary as the data returned for
- // GetWebstoreItemJsonDataURL above. |query| is the user typed query string.
- // |hl| is the host language code, e.g. en_US. Both arguments will be escaped
- // and added as a query parameter to the returned web store json search URL.
- GURL GetWebstoreJsonSearchUrl(const std::string& query,
- const std::string& hl);
-
- // Returns the URL of the web store search results page for |query|.
- GURL GetWebstoreSearchPageUrl(const std::string& query);
-
// Return the update URL used by gallery/webstore extensions/apps.
GURL GetWebstoreUpdateUrl();
@@ -51,10 +21,6 @@ namespace extension_urls {
// Returns true if the URL points to an extension blacklist.
bool IsBlacklistUpdateUrl(const GURL& url);
- // The greatest common prefixes of the main extensions gallery's browse and
- // download URLs.
- extern const char kGalleryBrowsePrefix[];
-
// Field to use with webstore URL for tracking launch source.
extern const char kWebstoreSourceField[];

Powered by Google App Engine
This is Rietveld 408576698