| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 response->response_head.status = request->status(); | 170 response->response_head.status = request->status(); |
| 171 response->response_head.request_time = request->request_time(); | 171 response->response_head.request_time = request->request_time(); |
| 172 response->response_head.response_time = request->response_time(); | 172 response->response_head.response_time = request->response_time(); |
| 173 response->response_head.headers = request->response_headers(); | 173 response->response_head.headers = request->response_headers(); |
| 174 request->GetCharset(&response->response_head.charset); | 174 request->GetCharset(&response->response_head.charset); |
| 175 response->response_head.content_length = request->GetExpectedContentSize(); | 175 response->response_head.content_length = request->GetExpectedContentSize(); |
| 176 request->GetMimeType(&response->response_head.mime_type); | 176 request->GetMimeType(&response->response_head.mime_type); |
| 177 response->response_head.was_fetched_via_spdy = | 177 response->response_head.was_fetched_via_spdy = |
| 178 request->was_fetched_via_spdy(); | 178 request->was_fetched_via_spdy(); |
| 179 response->response_head.was_npn_negotiated = request->was_npn_negotiated(); | 179 response->response_head.was_npn_negotiated = request->was_npn_negotiated(); |
| 180 response->response_head.was_alternate_protocol_available = | |
| 181 request->was_alternate_protocol_available(); | |
| 182 response->response_head.was_fetched_via_proxy = | 180 response->response_head.was_fetched_via_proxy = |
| 183 request->was_fetched_via_proxy(); | 181 request->was_fetched_via_proxy(); |
| 184 response->response_head.socket_address = request->GetSocketAddress(); | 182 response->response_head.socket_address = request->GetSocketAddress(); |
| 185 appcache::AppCacheInterceptor::GetExtraResponseInfo( | 183 appcache::AppCacheInterceptor::GetExtraResponseInfo( |
| 186 request, | 184 request, |
| 187 &response->response_head.appcache_id, | 185 &response->response_head.appcache_id, |
| 188 &response->response_head.appcache_manifest_url); | 186 &response->response_head.appcache_manifest_url); |
| 189 } | 187 } |
| 190 | 188 |
| 191 // Returns a list of all the possible error codes from the network module. | 189 // Returns a list of all the possible error codes from the network module. |
| (...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1943 return is_prefetch_enabled_; | 1941 return is_prefetch_enabled_; |
| 1944 } | 1942 } |
| 1945 | 1943 |
| 1946 // static | 1944 // static |
| 1947 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { | 1945 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { |
| 1948 is_prefetch_enabled_ = value; | 1946 is_prefetch_enabled_ = value; |
| 1949 } | 1947 } |
| 1950 | 1948 |
| 1951 // static | 1949 // static |
| 1952 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; | 1950 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; |
| OLD | NEW |