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

Side by Side Diff: extensions/browser/extensions_browser_client.h

Issue 651403003: Remove //chrome deps from ExtensionDownloader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // implementation must be safe to call from any thread. 184 // implementation must be safe to call from any thread.
185 virtual void BroadcastEventToRenderers(const std::string& event_name, 185 virtual void BroadcastEventToRenderers(const std::string& event_name,
186 scoped_ptr<base::ListValue> args) = 0; 186 scoped_ptr<base::ListValue> args) = 0;
187 187
188 // Returns the embedder's net::NetLog. 188 // Returns the embedder's net::NetLog.
189 virtual net::NetLog* GetNetLog() = 0; 189 virtual net::NetLog* GetNetLog() = 0;
190 190
191 // Gets the single ExtensionCache instance shared across the browser process. 191 // Gets the single ExtensionCache instance shared across the browser process.
192 virtual ExtensionCache* GetExtensionCache() = 0; 192 virtual ExtensionCache* GetExtensionCache() = 0;
193 193
194 // Indicates whether extension update checks should be allowed.
195 virtual bool IsBackgroundUpdateAllowed() = 0;
196
197 // Indicates whether an extension update which specifies its minimum browser
198 // version as |min_version| can be installed by the client. Not all extensions
199 // embedders share the same versioning model, so interpretation of the string
200 // is left up to the embedder.
201 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0;
202
194 // Returns the single instance of |this|. 203 // Returns the single instance of |this|.
195 static ExtensionsBrowserClient* Get(); 204 static ExtensionsBrowserClient* Get();
196 205
197 // Initialize the single instance. 206 // Initialize the single instance.
198 static void Set(ExtensionsBrowserClient* client); 207 static void Set(ExtensionsBrowserClient* client);
199 }; 208 };
200 209
201 } // namespace extensions 210 } // namespace extensions
202 211
203 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 212 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.cc ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698