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

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

Issue 99533002: Disabled resource scheduling when using a SPDY proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved spdy proxy check to dispatcher as an explicit call when we start to get a response and added … 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 | « no previous file | content/browser/loader/resource_scheduler.h » ('j') | net/url_request/url_request.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 34b2d3af6d736800b372ec8a2bc38c63c8ac573d..4fa3fb920af5be0d0441f596210505a45a791ad0 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -704,6 +704,13 @@ void ResourceDispatcherHostImpl::DidReceiveRedirect(ResourceLoader* loader,
void ResourceDispatcherHostImpl::DidReceiveResponse(ResourceLoader* loader) {
ResourceRequestInfoImpl* info = loader->GetRequestInfo();
+ if (loader->request()->was_fetched_via_proxy() &&
+ loader->request()->was_fetched_via_spdy() &&
+ loader->request()->url().SchemeIs("http")) {
+ scheduler_->OnReceivedSpdyProxiedHttpResponse(
+ info->GetChildID(), info->GetRouteID());
+ }
+
// There should be an entry in the map created when we dispatched the
// request unless it's been detached and the renderer has died.
OfflineMap::iterator policy_it(
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.h » ('j') | net/url_request/url_request.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698