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

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

Issue 15342003: app_list: Add web store search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and address nits in #3 Created 7 years, 7 months 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_constants.h
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index 9566f17952f28875d5bef2fad2a3f337f7fbf028..21c01b5db04f2e215ecb3c63f5ee70cc21d08cf6 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -34,6 +34,18 @@ namespace extension_urls {
// 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();
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698