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