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 |