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 10namespace content { 11class ResourceThrottle; 12} 13 14namespace component_updater { 15 16class 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. 21content::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