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

Unified Diff: chrome/browser/component_updater/component_updater_service.h

Issue 25713007: Component updater on-demand logic with ResourceThrottle (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/component_updater_service.h
===================================================================
--- chrome/browser/component_updater/component_updater_service.h (revision 231370)
+++ chrome/browser/component_updater/component_updater_service.h (working copy)
@@ -18,8 +18,13 @@
namespace net {
class URLRequestContextGetter;
+class URLRequest;
}
+namespace content {
+class ResourceThrottle;
+}
+
class ComponentPatcher;
// Component specific installers must derive from this class and implement
@@ -188,6 +193,12 @@
// Returns a list of registered components.
virtual void GetComponents(std::vector<CrxComponentInfo>* components) = 0;
+ // Returns a resource throttler. It imeans that a component will be downloaded
Sorin Jianu 2013/10/30 21:02:44 imeans
Sorin Jianu 2013/10/30 22:09:13 small nit, maybe say "resource throttle" instead o
cpu_(ooo_6.6-7.5) 2013/10/31 04:38:26 Done.
+ // and installed before the resource is untrottled. Note that is this called
waffles 2013/10/30 21:11:20 also, untrottled -> unthrottled
cpu_(ooo_6.6-7.5) 2013/10/31 04:38:26 Done.
+ // from the IO thread.
+ virtual content::ResourceThrottle* GetResourceThrottle(
Sorin Jianu 2013/10/30 22:09:13 Since now this is part of the public interface of
cpu_(ooo_6.6-7.5) 2013/10/31 04:38:26 For it to work it requires a fair bit of infrastru
+ net::URLRequest* request, const char* crx_id) = 0;
+
virtual ~ComponentUpdateService() {}
// TODO(waffles): Remove PNaCl as a friend once an alternative on-demand

Powered by Google App Engine
This is Rietveld 408576698