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

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: xxx Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_service.h
===================================================================
--- chrome/browser/component_updater/component_updater_service.h (revision 232565)
+++ 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 network resource throttle. It means that a component will be
+ // downloaded and installed before the resource is unthrottled. This is the
+ // only function callable from the IO thread.
+ virtual content::ResourceThrottle* GetOnDemandResourceThrottle(
+ net::URLRequest* request, const std::string& crx_id) = 0;
+
virtual ~ComponentUpdateService() {}
// TODO(waffles): Remove PNaCl as a friend once an alternative on-demand
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698