Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1955)

Unified Diff: chrome/browser/component_updater/component_updater_resource_throttle.h

Issue 421393002: Componentize component_updater: Split content::ResourceThrottle from CUS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_resource_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_resource_throttle.h
diff --git a/chrome/browser/component_updater/component_updater_resource_throttle.h b/chrome/browser/component_updater/component_updater_resource_throttle.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a9f0a62bcd690ec0d277befcb61f8e0f47dc77e
--- /dev/null
+++ b/chrome/browser/component_updater/component_updater_resource_throttle.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
+#define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
+
+#include <string>
+
+namespace content {
+class ResourceThrottle;
+}
+
+namespace component_updater {
+
+class ComponentUpdateService;
+
+// Returns a network resource throttle. It means that a component will be
+// downloaded and installed before the resource is unthrottled. This function
+// can be called from the IO thread.
+content::ResourceThrottle* GetOnDemandResourceThrottle(
+ ComponentUpdateService* cus,
+ const std::string& crx_id);
+
+} // namespace component_updater
+
+#endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_RESOURCE_THROTTLE_H_
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698