1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
11 class ResourceThrottle
;
14 namespace component_updater
{
16 class ComponentUpdateService
;
18 // Returns a network resource throttle. It means that a component will be
19 // downloaded and installed before the resource is unthrottled. This function
20 // can be called from the IO thread.
21 content::ResourceThrottle
* GetOnDemandResourceThrottle(
22 ComponentUpdateService
* cus
,
23 const std::string
& crx_id
);
25 } // namespace component_updater
27 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_