Home | History | Annotate | Download | only in component_updater
      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.
      4 
      5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
      6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
      7 
      8 #include <string>
      9 
     10 namespace content {
     11 class ResourceThrottle;
     12 }
     13 
     14 namespace component_updater {
     15 
     16 class ComponentUpdateService;
     17 
     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);
     24 
     25 }  // namespace component_updater
     26 
     27 #endif  // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
     28