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

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

Issue 10446027: Force update checks to use SSL for store-hosted extensions/apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review 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
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. The 34 // Return the update URL used by gallery/webstore extensions/apps.
35 // |secure| parameter will be ignored if the update URL is overriden with 35 GURL GetWebstoreUpdateUrl();
36 // --apps-gallery-update-url.
37 GURL GetWebstoreUpdateUrl(bool secure);
38 36
39 // Returns whether the URL is the webstore update URL (secure or not). 37 // Returns whether the URL is the webstore update URL (just considering host
38 // and path, not scheme, query, etc.)
40 bool IsWebstoreUpdateUrl(const GURL& update_url); 39 bool IsWebstoreUpdateUrl(const GURL& update_url);
41 40
42 // Returns true if the URL points to an extension blacklist. 41 // Returns true if the URL points to an extension blacklist.
43 bool IsBlacklistUpdateUrl(const GURL& url); 42 bool IsBlacklistUpdateUrl(const GURL& url);
44 43
45 // The greatest common prefixes of the main extensions gallery's browse and 44 // The greatest common prefixes of the main extensions gallery's browse and
46 // download URLs. 45 // download URLs.
47 extern const char kGalleryBrowsePrefix[]; 46 extern const char kGalleryBrowsePrefix[];
48 } // namespace extension_urls 47 } // namespace extension_urls
49 48
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 extern const char kAppStateRunning[]; 249 extern const char kAppStateRunning[];
251 extern const char kAppStateCannotRun[]; 250 extern const char kAppStateCannotRun[];
252 extern const char kAppStateReadyToRun[]; 251 extern const char kAppStateReadyToRun[];
253 252
254 // 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
255 // mode extensions in incognito windows. 254 // mode extensions in incognito windows.
256 extern const char kAppNotificationsIncognitoError[]; 255 extern const char kAppNotificationsIncognitoError[];
257 } // extension_misc 256 } // extension_misc
258 257
259 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 258 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698