Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / component_updater / component_updater_resource_throttle.h
blob5a9f0a62bcd690ec0d277befcb61f8e0f47dc77e
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_
8 #include <string>
10 namespace content {
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_