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

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

Issue 2493053002: [extensions] Stop parsing webstore urls so much (Closed)
Patch Set: rdevlin review 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
« no previous file with comments | « extensions/common/extension_urls.cc ('k') | extensions/shell/common/shell_extensions_client.h » ('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 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_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Records that a fatal error was caught and suppressed. It is expected that 100 // Records that a fatal error was caught and suppressed. It is expected that
101 // embedders will only do so if ShouldSuppressFatalErrors at some point 101 // embedders will only do so if ShouldSuppressFatalErrors at some point
102 // returned true. 102 // returned true.
103 virtual void RecordDidSuppressFatalError() = 0; 103 virtual void RecordDidSuppressFatalError() = 0;
104 104
105 // Returns the base webstore URL prefix. 105 // Returns the base webstore URL prefix.
106 virtual std::string GetWebstoreBaseURL() const = 0; 106 virtual std::string GetWebstoreBaseURL() const = 0;
107 107
108 // Returns the URL to use for update manifest queries. 108 // Returns the URL to use for update manifest queries.
109 virtual std::string GetWebstoreUpdateURL() const = 0; 109 virtual const GURL& GetWebstoreUpdateURL() const = 0;
110 110
111 // Returns a flag indicating whether or not a given URL is a valid 111 // Returns a flag indicating whether or not a given URL is a valid
112 // extension blacklist URL. 112 // extension blacklist URL.
113 virtual bool IsBlacklistUpdateURL(const GURL& url) const = 0; 113 virtual bool IsBlacklistUpdateURL(const GURL& url) const = 0;
114 114
115 // Returns the set of file paths corresponding to any images within an 115 // Returns the set of file paths corresponding to any images within an
116 // extension's contents that may be displayed directly within the browser UI 116 // extension's contents that may be displayed directly within the browser UI
117 // or WebUI, such as icons or theme images. This set of paths is used by the 117 // or WebUI, such as icons or theme images. This set of paths is used by the
118 // extension unpacker to determine which assets should be transcoded safely 118 // extension unpacker to determine which assets should be transcoded safely
119 // within the utility sandbox. 119 // within the utility sandbox.
(...skipping 15 matching lines...) Expand all
135 // Return the extensions client. 135 // Return the extensions client.
136 static ExtensionsClient* Get(); 136 static ExtensionsClient* Get();
137 137
138 // Initialize the extensions system with this extensions client. 138 // Initialize the extensions system with this extensions client.
139 static void Set(ExtensionsClient* client); 139 static void Set(ExtensionsClient* client);
140 }; 140 };
141 141
142 } // namespace extensions 142 } // namespace extensions
143 143
144 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 144 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/common/extension_urls.cc ('k') | extensions/shell/common/shell_extensions_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698