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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_impl.cc

Issue 10701151: DuplicateContentResourceHandler to monitor resources and track how many times th… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 5 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/resource_dispatcher_host_impl.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_impl.cc (revision 146828)
+++ content/browser/renderer_host/resource_dispatcher_host_impl.cc (working copy)
@@ -35,6 +35,7 @@
#include "content/browser/renderer_host/async_resource_handler.h"
#include "content/browser/renderer_host/buffered_resource_handler.h"
#include "content/browser/renderer_host/cross_site_resource_handler.h"
+#include "content/browser/renderer_host/duplicate_resource_handler.h"
#include "content/browser/renderer_host/redirect_to_file_resource_handler.h"
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
@@ -1012,6 +1013,7 @@
// Construct the IPC resource handler.
scoped_ptr<ResourceHandler> handler;
+
gavinp 2012/07/18 12:13:32 Lose this blank line.
frankwang 2012/07/19 16:10:26 Done.
if (sync_result) {
handler.reset(new SyncResourceHandler(
filter_, request, sync_result, this));
@@ -1044,6 +1046,10 @@
handler.reset(
new BufferedResourceHandler(handler.Pass(), this, request));
+ handler.reset(
gavinp 2012/07/18 12:13:32 A short comment explaining what this resource hand
frankwang 2012/07/19 16:10:26 Done.
+ new DuplicateResourceHandler(handler.Pass(), request_data.resource_type,
+ request));
+
ScopedVector<ResourceThrottle> throttles;
if (delegate_) {
bool is_continuation_of_transferred_request =

Powered by Google App Engine
This is Rietveld 408576698