OLD | NEW |
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 Loading... |
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 | |
759 ResourceDispatcherHostLoginDelegate* | 749 ResourceDispatcherHostLoginDelegate* |
760 ResourceDispatcherHostImpl::CreateLoginDelegate( | 750 ResourceDispatcherHostImpl::CreateLoginDelegate( |
761 ResourceLoader* loader, | 751 ResourceLoader* loader, |
762 net::AuthChallengeInfo* auth_info) { | 752 net::AuthChallengeInfo* auth_info) { |
763 if (!delegate_) | 753 if (!delegate_) |
764 return NULL; | 754 return NULL; |
765 | 755 |
766 return delegate_->CreateLoginDelegate(auth_info, loader->request()); | 756 return delegate_->CreateLoginDelegate(auth_info, loader->request()); |
767 } | 757 } |
768 | 758 |
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 | 2142 |
2153 // Add a flag to selectively bypass the data reduction proxy if the resource | 2143 // Add a flag to selectively bypass the data reduction proxy if the resource |
2154 // type is not an image. | 2144 // type is not an image. |
2155 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) | 2145 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) |
2156 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; | 2146 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; |
2157 | 2147 |
2158 return load_flags; | 2148 return load_flags; |
2159 } | 2149 } |
2160 | 2150 |
2161 } // namespace content | 2151 } // namespace content |
OLD | NEW |