| 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 "chrome/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 replace_extension_localization_templates; | 174 replace_extension_localization_templates; |
| 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 = | 180 response->response_head.was_alternate_protocol_available = |
| 181 request->was_alternate_protocol_available(); | 181 request->was_alternate_protocol_available(); |
| 182 response->response_head.was_fetched_via_proxy = | 182 response->response_head.was_fetched_via_proxy = |
| 183 request->was_fetched_via_proxy(); | 183 request->was_fetched_via_proxy(); |
| 184 response->response_head.socket_address = request->GetSocketAddress(); |
| 184 appcache::AppCacheInterceptor::GetExtraResponseInfo( | 185 appcache::AppCacheInterceptor::GetExtraResponseInfo( |
| 185 request, | 186 request, |
| 186 &response->response_head.appcache_id, | 187 &response->response_head.appcache_id, |
| 187 &response->response_head.appcache_manifest_url); | 188 &response->response_head.appcache_manifest_url); |
| 188 } | 189 } |
| 189 | 190 |
| 190 // Returns a list of all the possible error codes from the network module. | 191 // Returns a list of all the possible error codes from the network module. |
| 191 // Note that the error codes are all positive (since histograms expect positive | 192 // Note that the error codes are all positive (since histograms expect positive |
| 192 // sample values). | 193 // sample values). |
| 193 std::vector<int> GetAllNetErrorCodes() { | 194 std::vector<int> GetAllNetErrorCodes() { |
| (...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1938 return is_prefetch_enabled_; | 1939 return is_prefetch_enabled_; |
| 1939 } | 1940 } |
| 1940 | 1941 |
| 1941 // static | 1942 // static |
| 1942 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { | 1943 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { |
| 1943 is_prefetch_enabled_ = value; | 1944 is_prefetch_enabled_ = value; |
| 1944 } | 1945 } |
| 1945 | 1946 |
| 1946 // static | 1947 // static |
| 1947 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; | 1948 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; |
| OLD | NEW |