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

Side by Side Diff: extensions/common/extension_urls.h

Issue 2506713002: Avoid parsing the webstore base url so much. (Closed)
Patch Set: fix chromeos Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_COMMON_EXTENSION_URLS_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSION_URLS_H_
6 #define EXTENSIONS_COMMON_EXTENSION_URLS_H_ 6 #define EXTENSIONS_COMMON_EXTENSION_URLS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Canonical URLs for the Chrome Webstore. You probably want to use one of 32 // Canonical URLs for the Chrome Webstore. You probably want to use one of
33 // the calls below rather than using one of these constants directly, since 33 // the calls below rather than using one of these constants directly, since
34 // the active extensions embedder may provide its own webstore URLs. 34 // the active extensions embedder may provide its own webstore URLs.
35 extern const char kChromeWebstoreBaseURL[]; 35 extern const char kChromeWebstoreBaseURL[];
36 extern const char kChromeWebstoreUpdateURL[]; 36 extern const char kChromeWebstoreUpdateURL[];
37 37
38 // Returns the URL prefix for the extension/apps gallery. Can be set via the 38 // Returns the URL prefix for the extension/apps gallery. Can be set via the
39 // --apps-gallery-url switch. The URL returned will not contain a trailing 39 // --apps-gallery-url switch. The URL returned will not contain a trailing
40 // slash. Do not use this as a prefix/extent for the store. 40 // slash. Do not use this as a prefix/extent for the store.
41 std::string GetWebstoreLaunchURL(); 41 GURL GetWebstoreLaunchURL();
42 42
43 // Returns the URL to the extensions category on the Web Store. This is 43 // Returns the URL to the extensions category on the Web Store. This is
44 // derived from GetWebstoreLaunchURL(). 44 // derived from GetWebstoreLaunchURL().
45 std::string GetWebstoreExtensionsCategoryURL(); 45 std::string GetWebstoreExtensionsCategoryURL();
46 46
47 // Returns the URL prefix for an item in the extension/app gallery. This URL 47 // Returns the URL prefix for an item in the extension/app gallery. This URL
48 // will contain a trailing slash and should be concatenated with an item ID 48 // will contain a trailing slash and should be concatenated with an item ID
49 // to get the item detail URL. 49 // to get the item detail URL.
50 std::string GetWebstoreItemDetailURLPrefix(); 50 std::string GetWebstoreItemDetailURLPrefix();
51 51
(...skipping 26 matching lines...) Expand all
78 // Returns whether the URL is the webstore update URL (just considering host 78 // Returns whether the URL is the webstore update URL (just considering host
79 // and path, not scheme, query, etc.) 79 // and path, not scheme, query, etc.)
80 bool IsWebstoreUpdateUrl(const GURL& update_url); 80 bool IsWebstoreUpdateUrl(const GURL& update_url);
81 81
82 // Returns true if the URL points to an extension blacklist. 82 // Returns true if the URL points to an extension blacklist.
83 bool IsBlacklistUpdateUrl(const GURL& url); 83 bool IsBlacklistUpdateUrl(const GURL& url);
84 84
85 } // namespace extension_urls 85 } // namespace extension_urls
86 86
87 #endif // EXTENSIONS_COMMON_EXTENSION_URLS_H_ 87 #endif // EXTENSIONS_COMMON_EXTENSION_URLS_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/chrome_extensions_client.cc ('k') | extensions/common/extension_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698