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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 1091253008: Fix an issue that external protocol in subframes are not handled on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 786
787 if (!IsResourceTypeFrame(info->GetResourceType())) 787 if (!IsResourceTypeFrame(info->GetResourceType()))
788 return false; 788 return false;
789 789
790 const net::URLRequestJobFactory* job_factory = 790 const net::URLRequestJobFactory* job_factory =
791 info->GetContext()->GetRequestContext()->job_factory(); 791 info->GetContext()->GetRequestContext()->job_factory();
792 if (job_factory->IsHandledURL(url)) 792 if (job_factory->IsHandledURL(url))
793 return false; 793 return false;
794 794
795 return delegate_->HandleExternalProtocol( 795 return delegate_->HandleExternalProtocol(
796 url, info->GetChildID(), info->GetRouteID()); 796 url, info->GetChildID(), info->GetRouteID(), info->GetPageTransition());
797 } 797 }
798 798
799 void ResourceDispatcherHostImpl::DidStartRequest(ResourceLoader* loader) { 799 void ResourceDispatcherHostImpl::DidStartRequest(ResourceLoader* loader) {
800 // Make sure we have the load state monitor running 800 // Make sure we have the load state monitor running
801 if (!update_load_states_timer_->IsRunning()) { 801 if (!update_load_states_timer_->IsRunning()) {
802 update_load_states_timer_->Start( 802 update_load_states_timer_->Start(
803 FROM_HERE, TimeDelta::FromMilliseconds(kUpdateLoadStatesIntervalMsec), 803 FROM_HERE, TimeDelta::FromMilliseconds(kUpdateLoadStatesIntervalMsec),
804 this, &ResourceDispatcherHostImpl::UpdateLoadInfo); 804 this, &ResourceDispatcherHostImpl::UpdateLoadInfo);
805 } 805 }
806 } 806 }
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 2349
2350 // Add a flag to selectively bypass the data reduction proxy if the resource 2350 // Add a flag to selectively bypass the data reduction proxy if the resource
2351 // type is not an image. 2351 // type is not an image.
2352 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2352 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2353 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2353 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2354 2354
2355 return load_flags; 2355 return load_flags;
2356 } 2356 }
2357 2357
2358 } // namespace content 2358 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698