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

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

Issue 596873002: Remove SSLClientAuthHandler's RDH dependency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 info->set_is_stream(true); 665 info->set_is_stream(true);
666 delegate_->OnStreamCreated( 666 delegate_->OnStreamCreated(
667 request, 667 request,
668 handler->stream()->CreateHandle( 668 handler->stream()->CreateHandle(
669 request->url(), 669 request->url(),
670 mime_type, 670 mime_type,
671 response->head.headers)); 671 response->head.headers));
672 return handler.PassAs<ResourceHandler>(); 672 return handler.PassAs<ResourceHandler>();
673 } 673 }
674 674
675 void ResourceDispatcherHostImpl::ClearSSLClientAuthHandlerForRequest(
676 net::URLRequest* request) {
677 ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request);
678 if (info) {
679 ResourceLoader* loader = GetLoader(info->GetGlobalRequestID());
680 if (loader)
681 loader->ClearSSLClientAuthHandler();
682 }
683 }
684
685 ResourceDispatcherHostLoginDelegate* 675 ResourceDispatcherHostLoginDelegate*
686 ResourceDispatcherHostImpl::CreateLoginDelegate( 676 ResourceDispatcherHostImpl::CreateLoginDelegate(
687 ResourceLoader* loader, 677 ResourceLoader* loader,
688 net::AuthChallengeInfo* auth_info) { 678 net::AuthChallengeInfo* auth_info) {
689 if (!delegate_) 679 if (!delegate_)
690 return NULL; 680 return NULL;
691 681
692 return delegate_->CreateLoginDelegate(auth_info, loader->request()); 682 return delegate_->CreateLoginDelegate(auth_info, loader->request());
693 } 683 }
694 684
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 2039
2050 // Add a flag to selectively bypass the data reduction proxy if the resource 2040 // Add a flag to selectively bypass the data reduction proxy if the resource
2051 // type is not an image. 2041 // type is not an image.
2052 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2042 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2053 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2043 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2054 2044
2055 return load_flags; 2045 return load_flags;
2056 } 2046 }
2057 2047
2058 } // namespace content 2048 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698