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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 16 matching lines...) Expand all
27 27
28 // Returns the URL leading to a search page for Web Intents. The search is 28 // Returns the URL leading to a search page for Web Intents. The search is
29 // specific to intents with the given |action| and |type|. 29 // specific to intents with the given |action| and |type|.
30 GURL GetWebstoreIntentQueryURL(const std::string& action, 30 GURL GetWebstoreIntentQueryURL(const std::string& action,
31 const std::string& type); 31 const std::string& type);
32 32
33 // Returns the URL used to get webstore data (ratings, manifest, icon URL, 33 // Returns the URL used to get webstore data (ratings, manifest, icon URL,
34 // etc.) about an extension from the webstore as JSON. 34 // etc.) about an extension from the webstore as JSON.
35 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); 35 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id);
36 36
37 // Returns the URL used to get webstore search results in json format. The URL
James Cook 2013/05/20 14:39:34 nit: json -> JSON
xiyuan 2013/05/20 16:56:31 Done.
38 // returns a json dictionary that has the search results (under "results").
39 // Each entry in the array is a dictionary as the data returned for
40 // GetWebstoreItemJsonDataURL above.
41 GURL GetWebstoreJsonSearchUrl(const std::string& query,
42 const std::string& hl);
James Cook 2013/05/20 14:39:34 Document "hl"
xiyuan 2013/05/20 16:56:31 Done.
43
44 // Returns the URL of the web store search results page for |query|.
45 GURL GetWebstoreSearchPageUrl(const std::string& query);
46
37 // Return the update URL used by gallery/webstore extensions/apps. 47 // Return the update URL used by gallery/webstore extensions/apps.
38 GURL GetWebstoreUpdateUrl(); 48 GURL GetWebstoreUpdateUrl();
39 49
40 // Returns whether the URL is the webstore update URL (just considering host 50 // Returns whether the URL is the webstore update URL (just considering host
41 // and path, not scheme, query, etc.) 51 // and path, not scheme, query, etc.)
42 bool IsWebstoreUpdateUrl(const GURL& update_url); 52 bool IsWebstoreUpdateUrl(const GURL& update_url);
43 53
44 // Returns true if the URL points to an extension blacklist. 54 // Returns true if the URL points to an extension blacklist.
45 bool IsBlacklistUpdateUrl(const GURL& url); 55 bool IsBlacklistUpdateUrl(const GURL& url);
46 56
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // List of sizes for extension icons that can be defined in the manifest. 332 // List of sizes for extension icons that can be defined in the manifest.
323 extern const int kExtensionActionIconSizes[]; 333 extern const int kExtensionActionIconSizes[];
324 extern const size_t kNumExtensionActionIconSizes; 334 extern const size_t kNumExtensionActionIconSizes;
325 335
326 // List of sizes for extension icons that can be defined in the manifest. 336 // List of sizes for extension icons that can be defined in the manifest.
327 extern const int kScriptBadgeIconSizes[]; 337 extern const int kScriptBadgeIconSizes[];
328 extern const size_t kNumScriptBadgeIconSizes; 338 extern const size_t kNumScriptBadgeIconSizes;
329 } // namespace extension_misc 339 } // namespace extension_misc
330 340
331 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 341 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698