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

Unified Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 117933003: Remove the speculative resource prefetching code. This was experimental code added 1.5 years ago an… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 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 | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/resources/predictors/predictors.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
===================================================================
--- chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (revision 243063)
+++ chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (working copy)
@@ -21,7 +21,6 @@
#include "chrome/browser/external_protocol/external_protocol_handler.h"
#include "chrome/browser/google/google_util.h"
#include "chrome/browser/metrics/variations/variations_http_header_provider.h"
-#include "chrome/browser/net/resource_prefetch_predictor_observer.h"
#include "chrome/browser/prefetch/prefetch_field_trial.h"
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/prerender/prerender_pending_swap_throttle.h"
@@ -324,11 +323,6 @@
resource_type,
throttles);
}
-
- if (io_data->resource_prefetch_predictor_observer()) {
- io_data->resource_prefetch_predictor_observer()->OnRequestStarted(
- request, resource_type, child_id, route_id);
- }
}
void ChromeResourceDispatcherHostDelegate::WillTransferRequestToNewProcess(
@@ -629,9 +623,6 @@
}
}
- if (io_data->resource_prefetch_predictor_observer())
- io_data->resource_prefetch_predictor_observer()->OnResponseStarted(request);
-
prerender::URLRequestResponseStarted(request);
}
@@ -660,9 +651,4 @@
// management UI is built on top of it.
signin::AppendMirrorRequestHeaderIfPossible(request, redirect_url, io_data,
info->GetChildID(), info->GetRouteID());
-
- if (io_data->resource_prefetch_predictor_observer()) {
- io_data->resource_prefetch_predictor_observer()->OnRequestRedirected(
- redirect_url, request);
- }
}
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/resources/predictors/predictors.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698