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

Unified Diff: content/browser/renderer_host/throttling_resource_handler.h

Issue 10501004: Refactor the guts of ResourceDispatcherHostImpl into a new class named (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: content/browser/renderer_host/throttling_resource_handler.h
===================================================================
--- content/browser/renderer_host/throttling_resource_handler.h (revision 141889)
+++ content/browser/renderer_host/throttling_resource_handler.h (working copy)
@@ -9,22 +9,20 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_vector.h"
#include "content/browser/renderer_host/layered_resource_handler.h"
-#include "content/public/browser/resource_throttle_controller.h"
+#include "content/public/browser/resource_controller.h"
#include "googleurl/src/gurl.h"
namespace content {
-class ResourceDispatcherHostImpl;
class ResourceThrottle;
struct ResourceResponse;
// Used to apply a list of ResourceThrottle instances to an URLRequest.
class ThrottlingResourceHandler : public LayeredResourceHandler,
- public ResourceThrottleController {
+ public ResourceController {
public:
// Takes ownership of the ResourceThrottle instances.
- ThrottlingResourceHandler(ResourceDispatcherHostImpl* host,
- scoped_ptr<ResourceHandler> next_handler,
+ ThrottlingResourceHandler(scoped_ptr<ResourceHandler> next_handler,
int child_id,
int request_id,
ScopedVector<ResourceThrottle> throttles);
@@ -57,7 +55,6 @@
};
DeferredStage deferred_stage_;
- ResourceDispatcherHostImpl* host_;
int child_id_;
int request_id_;

Powered by Google App Engine
This is Rietveld 408576698