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

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

Issue 10532037: Revert r139371 and r138961 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // Returns the URL leading to a search page for Web Intents. The search is 25 // Returns the URL leading to a search page for Web Intents. The search is
26 // specific to intents with the given |action| and |type|. 26 // specific to intents with the given |action| and |type|.
27 GURL GetWebstoreIntentQueryURL(const std::string& action, 27 GURL GetWebstoreIntentQueryURL(const std::string& action,
28 const std::string& type); 28 const std::string& type);
29 29
30 // Returns the URL used to get webstore data (ratings, manifest, icon URL, 30 // Returns the URL used to get webstore data (ratings, manifest, icon URL,
31 // etc.) about an extension from the webstore as JSON. 31 // etc.) about an extension from the webstore as JSON.
32 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); 32 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id);
33 33
34 // Return the update URL used by gallery/webstore extensions/apps. 34 // Return the update URL used by gallery/webstore extensions/apps. The
35 GURL GetWebstoreUpdateUrl(); 35 // |secure| parameter will be ignored if the update URL is overriden with
36 // --apps-gallery-update-url.
37 GURL GetWebstoreUpdateUrl(bool secure);
36 38
37 // Returns whether the URL is the webstore update URL (just considering host 39 // Returns whether the URL is the webstore update URL (secure or not).
38 // and path, not scheme, query, etc.)
39 bool IsWebstoreUpdateUrl(const GURL& update_url); 40 bool IsWebstoreUpdateUrl(const GURL& update_url);
40 41
41 // Returns true if the URL points to an extension blacklist. 42 // Returns true if the URL points to an extension blacklist.
42 bool IsBlacklistUpdateUrl(const GURL& url); 43 bool IsBlacklistUpdateUrl(const GURL& url);
43 44
44 // The greatest common prefixes of the main extensions gallery's browse and 45 // The greatest common prefixes of the main extensions gallery's browse and
45 // download URLs. 46 // download URLs.
46 extern const char kGalleryBrowsePrefix[]; 47 extern const char kGalleryBrowsePrefix[];
47 } // namespace extension_urls 48 } // namespace extension_urls
48 49
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 extern const char kAppStateRunning[]; 249 extern const char kAppStateRunning[];
249 extern const char kAppStateCannotRun[]; 250 extern const char kAppStateCannotRun[];
250 extern const char kAppStateReadyToRun[]; 251 extern const char kAppStateReadyToRun[];
251 252
252 // Error indicating that the app notifications API is not accessible by split 253 // Error indicating that the app notifications API is not accessible by split
253 // mode extensions in incognito windows. 254 // mode extensions in incognito windows.
254 extern const char kAppNotificationsIncognitoError[]; 255 extern const char kAppNotificationsIncognitoError[];
255 } // extension_misc 256 } // extension_misc
256 257
257 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 258 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698