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

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

Issue 766463002: Revert of Remove SSLClientAuthHandler's RDH dependency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 info->set_is_stream(true); 739 info->set_is_stream(true);
740 delegate_->OnStreamCreated( 740 delegate_->OnStreamCreated(
741 request, 741 request,
742 handler->stream()->CreateHandle( 742 handler->stream()->CreateHandle(
743 request->url(), 743 request->url(),
744 mime_type, 744 mime_type,
745 response->head.headers)); 745 response->head.headers));
746 return handler.PassAs<ResourceHandler>(); 746 return handler.PassAs<ResourceHandler>();
747 } 747 }
748 748
749 void ResourceDispatcherHostImpl::ClearSSLClientAuthHandlerForRequest(
750 net::URLRequest* request) {
751 ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request);
752 if (info) {
753 ResourceLoader* loader = GetLoader(info->GetGlobalRequestID());
754 if (loader)
755 loader->ClearSSLClientAuthHandler();
756 }
757 }
758
749 ResourceDispatcherHostLoginDelegate* 759 ResourceDispatcherHostLoginDelegate*
750 ResourceDispatcherHostImpl::CreateLoginDelegate( 760 ResourceDispatcherHostImpl::CreateLoginDelegate(
751 ResourceLoader* loader, 761 ResourceLoader* loader,
752 net::AuthChallengeInfo* auth_info) { 762 net::AuthChallengeInfo* auth_info) {
753 if (!delegate_) 763 if (!delegate_)
754 return NULL; 764 return NULL;
755 765
756 return delegate_->CreateLoginDelegate(auth_info, loader->request()); 766 return delegate_->CreateLoginDelegate(auth_info, loader->request());
757 } 767 }
758 768
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 2152
2143 // Add a flag to selectively bypass the data reduction proxy if the resource 2153 // Add a flag to selectively bypass the data reduction proxy if the resource
2144 // type is not an image. 2154 // type is not an image.
2145 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2155 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2146 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2156 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2147 2157
2148 return load_flags; 2158 return load_flags;
2149 } 2159 }
2150 2160
2151 } // namespace content 2161 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/browser/loader/resource_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698