Index: chrome/browser/component_updater/component_updater_service.h |
=================================================================== |
--- chrome/browser/component_updater/component_updater_service.h (revision 226022) |
+++ 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 |
@@ -192,6 +197,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 |
+ // and installed before the resource is untrottled. Note that is this called |
+ // from the IO thread. |
+ virtual content::ResourceThrottle* GetResourceThrottle( |
+ net::URLRequest* request, const char* crx_id) = 0; |
+ |
virtual ~ComponentUpdateService() {} |
}; |