| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 replace_extension_localization_templates; | 176 replace_extension_localization_templates; |
| 177 response->response_head.content_length = request->GetExpectedContentSize(); | 177 response->response_head.content_length = request->GetExpectedContentSize(); |
| 178 request->GetMimeType(&response->response_head.mime_type); | 178 request->GetMimeType(&response->response_head.mime_type); |
| 179 response->response_head.was_fetched_via_spdy = | 179 response->response_head.was_fetched_via_spdy = |
| 180 request->was_fetched_via_spdy(); | 180 request->was_fetched_via_spdy(); |
| 181 response->response_head.was_npn_negotiated = request->was_npn_negotiated(); | 181 response->response_head.was_npn_negotiated = request->was_npn_negotiated(); |
| 182 response->response_head.was_alternate_protocol_available = | 182 response->response_head.was_alternate_protocol_available = |
| 183 request->was_alternate_protocol_available(); | 183 request->was_alternate_protocol_available(); |
| 184 response->response_head.was_fetched_via_proxy = | 184 response->response_head.was_fetched_via_proxy = |
| 185 request->was_fetched_via_proxy(); | 185 request->was_fetched_via_proxy(); |
| 186 response->response_head.socket_address = request->GetSocketAddress(); |
| 186 appcache::AppCacheInterceptor::GetExtraResponseInfo( | 187 appcache::AppCacheInterceptor::GetExtraResponseInfo( |
| 187 request, | 188 request, |
| 188 &response->response_head.appcache_id, | 189 &response->response_head.appcache_id, |
| 189 &response->response_head.appcache_manifest_url); | 190 &response->response_head.appcache_manifest_url); |
| 190 } | 191 } |
| 191 | 192 |
| 192 // Returns a list of all the possible error codes from the network module. | 193 // Returns a list of all the possible error codes from the network module. |
| 193 // Note that the error codes are all positive (since histograms expect positive | 194 // Note that the error codes are all positive (since histograms expect positive |
| 194 // sample values). | 195 // sample values). |
| 195 std::vector<int> GetAllNetErrorCodes() { | 196 std::vector<int> GetAllNetErrorCodes() { |
| (...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1943 return is_prefetch_enabled_; | 1944 return is_prefetch_enabled_; |
| 1944 } | 1945 } |
| 1945 | 1946 |
| 1946 // static | 1947 // static |
| 1947 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { | 1948 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { |
| 1948 is_prefetch_enabled_ = value; | 1949 is_prefetch_enabled_ = value; |
| 1949 } | 1950 } |
| 1950 | 1951 |
| 1951 // static | 1952 // static |
| 1952 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; | 1953 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; |
| OLD | NEW |