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

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

Issue 1144463003: Remove Navigation Transitions from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed TransitionPageHelper. Created 5 years, 7 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 void ResourceDispatcherHostImpl::AddResourceContext(ResourceContext* context) { 479 void ResourceDispatcherHostImpl::AddResourceContext(ResourceContext* context) {
480 active_resource_contexts_.insert(context); 480 active_resource_contexts_.insert(context);
481 } 481 }
482 482
483 void ResourceDispatcherHostImpl::RemoveResourceContext( 483 void ResourceDispatcherHostImpl::RemoveResourceContext(
484 ResourceContext* context) { 484 ResourceContext* context) {
485 CHECK(ContainsKey(active_resource_contexts_, context)); 485 CHECK(ContainsKey(active_resource_contexts_, context));
486 active_resource_contexts_.erase(context); 486 active_resource_contexts_.erase(context);
487 } 487 }
488 488
489 void ResourceDispatcherHostImpl::ResumeResponseDeferredAtStart(
490 const GlobalRequestID& id) {
491 ResourceLoader* loader = GetLoader(id);
492 if (loader) {
493 // The response we were meant to resume could have already been canceled.
494 ResourceRequestInfoImpl* info = loader->GetRequestInfo();
495 if (info->cross_site_handler())
496 info->cross_site_handler()->ResumeResponseDeferredAtStart(id.request_id);
497 }
498 }
499
500 void ResourceDispatcherHostImpl::CancelRequestsForContext( 489 void ResourceDispatcherHostImpl::CancelRequestsForContext(
501 ResourceContext* context) { 490 ResourceContext* context) {
502 DCHECK_CURRENTLY_ON(BrowserThread::IO); 491 DCHECK_CURRENTLY_ON(BrowserThread::IO);
503 DCHECK(context); 492 DCHECK(context);
504 493
505 CHECK(ContainsKey(active_resource_contexts_, context)); 494 CHECK(ContainsKey(active_resource_contexts_, context));
506 495
507 // Note that request cancellation has side effects. Therefore, we gather all 496 // Note that request cancellation has side effects. Therefore, we gather all
508 // the requests to cancel first, and then we start cancelling. We assert at 497 // the requests to cancel first, and then we start cancelling. We assert at
509 // the end that there are no more to cancel since the context is about to go 498 // the end that there are no more to cancel since the context is about to go
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 2374
2386 // Add a flag to selectively bypass the data reduction proxy if the resource 2375 // Add a flag to selectively bypass the data reduction proxy if the resource
2387 // type is not an image. 2376 // type is not an image.
2388 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2377 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2389 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2378 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2390 2379
2391 return load_flags; 2380 return load_flags;
2392 } 2381 }
2393 2382
2394 } // namespace content 2383 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/browser/renderer_host/render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698