| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 CertStore::GetSharedInstance()->StoreCert(request->ssl_info().cert, | 1134 CertStore::GetSharedInstance()->StoreCert(request->ssl_info().cert, |
| 1135 info->child_id()); | 1135 info->child_id()); |
| 1136 response->response_head.security_info = | 1136 response->response_head.security_info = |
| 1137 SSLManager::SerializeSecurityInfo( | 1137 SSLManager::SerializeSecurityInfo( |
| 1138 cert_id, request->ssl_info().cert_status, | 1138 cert_id, request->ssl_info().cert_status, |
| 1139 request->ssl_info().security_bits, | 1139 request->ssl_info().security_bits, |
| 1140 request->ssl_info().connection_status); | 1140 request->ssl_info().connection_status); |
| 1141 } else { | 1141 } else { |
| 1142 // We should not have any SSL state. | 1142 // We should not have any SSL state. |
| 1143 DCHECK(!request->ssl_info().cert_status && | 1143 DCHECK(!request->ssl_info().cert_status && |
| 1144 (request->ssl_info().security_bits == -1 || | 1144 request->ssl_info().security_bits == -1 && |
| 1145 request->ssl_info().security_bits == 0) && | |
| 1146 !request->ssl_info().connection_status); | 1145 !request->ssl_info().connection_status); |
| 1147 } | 1146 } |
| 1148 | 1147 |
| 1149 NotifyResponseStarted(request, info->child_id()); | 1148 NotifyResponseStarted(request, info->child_id()); |
| 1150 info->set_called_on_response_started(true); | 1149 info->set_called_on_response_started(true); |
| 1151 return info->resource_handler()->OnResponseStarted(info->request_id(), | 1150 return info->resource_handler()->OnResponseStarted(info->request_id(), |
| 1152 response.get()); | 1151 response.get()); |
| 1153 } | 1152 } |
| 1154 | 1153 |
| 1155 void ResourceDispatcherHost::CancelRequest(int child_id, | 1154 void ResourceDispatcherHost::CancelRequest(int child_id, |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 return is_prefetch_enabled_; | 1929 return is_prefetch_enabled_; |
| 1931 } | 1930 } |
| 1932 | 1931 |
| 1933 // static | 1932 // static |
| 1934 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { | 1933 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { |
| 1935 is_prefetch_enabled_ = value; | 1934 is_prefetch_enabled_ = value; |
| 1936 } | 1935 } |
| 1937 | 1936 |
| 1938 // static | 1937 // static |
| 1939 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; | 1938 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; |
| OLD | NEW |