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

Side by Side Diff: chrome/common/extensions/extension_constants.h

Issue 10310071: [RFC] Support CWS intents query URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to HEAD Created 8 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 13
14 namespace extension_urls { 14 namespace extension_urls {
15 // Returns the URL prefix for the extension/apps gallery. Can be set via the 15 // Returns the URL prefix for the extension/apps gallery. Can be set via the
16 // --apps-gallery-url switch. The URL returned will not contain a trailing 16 // --apps-gallery-url switch. The URL returned will not contain a trailing
17 // slash. Do not use this as a prefix/extent for the store. Instead see 17 // slash. Do not use this as a prefix/extent for the store. Instead see
18 // ExtensionService::GetWebStoreApp or 18 // ExtensionService::GetWebStoreApp or
19 // ExtensionService::IsDownloadFromGallery 19 // ExtensionService::IsDownloadFromGallery
20 std::string GetWebstoreLaunchURL(); 20 std::string GetWebstoreLaunchURL();
21 21
22 // Returns the URL prefix for an item in the extension/app gallery. This URL 22 // Returns the URL prefix for an item in the extension/app gallery. This URL
23 // will contain a trailing slash and should be concatenated with an item ID 23 // will contain a trailing slash and should be concatenated with an item ID
24 // to get the item detail URL. 24 // to get the item detail URL.
25 std::string GetWebstoreItemDetailURLPrefix(); 25 std::string GetWebstoreItemDetailURLPrefix();
26 26
27 // Returns the URL leading to a search page for Web Intents. The search is
28 // specific to intents with the given |action| and |type|.
29 GURL GetWebstoreIntentQueryURL(const std::string& action,
30 const std::string& type);
31
27 // Returns the URL used to get webstore data (ratings, manifest, icon URL, 32 // Returns the URL used to get webstore data (ratings, manifest, icon URL,
28 // etc.) about an extension from the webstore as JSON. 33 // etc.) about an extension from the webstore as JSON.
29 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); 34 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id);
30 35
31 // Return the update URL used by gallery/webstore extensions/apps. The 36 // Return the update URL used by gallery/webstore extensions/apps. The
32 // |secure| parameter will be ignored if the update URL is overriden with 37 // |secure| parameter will be ignored if the update URL is overriden with
33 // --apps-gallery-update-url. 38 // --apps-gallery-update-url.
34 GURL GetWebstoreUpdateUrl(bool secure); 39 GURL GetWebstoreUpdateUrl(bool secure);
35 40
36 // Returns whether the URL is the webstore update URL (secure or not). 41 // Returns whether the URL is the webstore update URL (secure or not).
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 extern const char kAppStateRunning[]; 252 extern const char kAppStateRunning[];
248 extern const char kAppStateCannotRun[]; 253 extern const char kAppStateCannotRun[];
249 extern const char kAppStateReadyToRun[]; 254 extern const char kAppStateReadyToRun[];
250 255
251 // Error indicating that the app notifications API is not accessible by split 256 // Error indicating that the app notifications API is not accessible by split
252 // mode extensions in incognito windows. 257 // mode extensions in incognito windows.
253 extern const char kAppNotificationsIncognitoError[]; 258 extern const char kAppNotificationsIncognitoError[];
254 } // extension_misc 259 } // extension_misc
255 260
256 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 261 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW
« 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