| 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/renderer_host/resource_dispatcher_host.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 response->status = request->status(); | 198 response->status = request->status(); |
| 199 response->request_time = request->request_time(); | 199 response->request_time = request->request_time(); |
| 200 response->response_time = request->response_time(); | 200 response->response_time = request->response_time(); |
| 201 response->headers = request->response_headers(); | 201 response->headers = request->response_headers(); |
| 202 request->GetCharset(&response->charset); | 202 request->GetCharset(&response->charset); |
| 203 response->content_length = request->GetExpectedContentSize(); | 203 response->content_length = request->GetExpectedContentSize(); |
| 204 request->GetMimeType(&response->mime_type); | 204 request->GetMimeType(&response->mime_type); |
| 205 net::HttpResponseInfo response_info = request->response_info(); | 205 net::HttpResponseInfo response_info = request->response_info(); |
| 206 response->was_fetched_via_spdy = response_info.was_fetched_via_spdy; | 206 response->was_fetched_via_spdy = response_info.was_fetched_via_spdy; |
| 207 response->was_npn_negotiated = response_info.was_npn_negotiated; | 207 response->was_npn_negotiated = response_info.was_npn_negotiated; |
| 208 response->npn_negotiated_protocol = response_info.npn_negotiated_protocol; |
| 208 response->was_fetched_via_proxy = request->was_fetched_via_proxy(); | 209 response->was_fetched_via_proxy = request->was_fetched_via_proxy(); |
| 209 response->socket_address = request->GetSocketAddress(); | 210 response->socket_address = request->GetSocketAddress(); |
| 210 appcache::AppCacheInterceptor::GetExtraResponseInfo( | 211 appcache::AppCacheInterceptor::GetExtraResponseInfo( |
| 211 request, | 212 request, |
| 212 &response->appcache_id, | 213 &response->appcache_id, |
| 213 &response->appcache_manifest_url); | 214 &response->appcache_manifest_url); |
| 214 } | 215 } |
| 215 | 216 |
| 216 void RemoveDownloadFileFromChildSecurityPolicy(int child_id, | 217 void RemoveDownloadFileFromChildSecurityPolicy(int child_id, |
| 217 const FilePath& path) { | 218 const FilePath& path) { |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2277 scoped_refptr<ResourceHandler> transferred_resource_handler( | 2278 scoped_refptr<ResourceHandler> transferred_resource_handler( |
| 2278 new DoomedResourceHandler(info->resource_handler())); | 2279 new DoomedResourceHandler(info->resource_handler())); |
| 2279 info->set_resource_handler(transferred_resource_handler.get()); | 2280 info->set_resource_handler(transferred_resource_handler.get()); |
| 2280 } | 2281 } |
| 2281 | 2282 |
| 2282 bool ResourceDispatcherHost::IsTransferredNavigation( | 2283 bool ResourceDispatcherHost::IsTransferredNavigation( |
| 2283 const content::GlobalRequestID& transferred_request_id) const { | 2284 const content::GlobalRequestID& transferred_request_id) const { |
| 2284 return transferred_navigations_.find(transferred_request_id) != | 2285 return transferred_navigations_.find(transferred_request_id) != |
| 2285 transferred_navigations_.end(); | 2286 transferred_navigations_.end(); |
| 2286 } | 2287 } |
| OLD | NEW |