| 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. | 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. |
| 6 | 6 |
| 7 #include "webkit/glue/weburlloader_impl.h" | 7 #include "webkit/glue/weburlloader_impl.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 response->setMIMEType(WebString::fromUTF8(info.mime_type)); | 153 response->setMIMEType(WebString::fromUTF8(info.mime_type)); |
| 154 response->setTextEncodingName(WebString::fromUTF8(info.charset)); | 154 response->setTextEncodingName(WebString::fromUTF8(info.charset)); |
| 155 response->setExpectedContentLength(info.content_length); | 155 response->setExpectedContentLength(info.content_length); |
| 156 response->setSecurityInfo(info.security_info); | 156 response->setSecurityInfo(info.security_info); |
| 157 response->setAppCacheID(info.appcache_id); | 157 response->setAppCacheID(info.appcache_id); |
| 158 response->setAppCacheManifestURL(info.appcache_manifest_url); | 158 response->setAppCacheManifestURL(info.appcache_manifest_url); |
| 159 response->setWasCached(!info.load_timing.base_time.is_null() && | 159 response->setWasCached(!info.load_timing.base_time.is_null() && |
| 160 info.response_time < info.load_timing.base_time); | 160 info.response_time < info.load_timing.base_time); |
| 161 response->setWasFetchedViaSPDY(info.was_fetched_via_spdy); | 161 response->setWasFetchedViaSPDY(info.was_fetched_via_spdy); |
| 162 response->setWasNpnNegotiated(info.was_npn_negotiated); | 162 response->setWasNpnNegotiated(info.was_npn_negotiated); |
| 163 response->setNpnNegotiatedProtocol(info.npn_negotiated_protocol); |
| 163 response->setWasAlternateProtocolAvailable( | 164 response->setWasAlternateProtocolAvailable( |
| 164 info.was_alternate_protocol_available); | 165 info.was_alternate_protocol_available); |
| 165 response->setWasFetchedViaProxy(info.was_fetched_via_proxy); | 166 response->setWasFetchedViaProxy(info.was_fetched_via_proxy); |
| 166 response->setRemoteIPAddress( | 167 response->setRemoteIPAddress( |
| 167 WebString::fromUTF8(info.socket_address.host())); | 168 WebString::fromUTF8(info.socket_address.host())); |
| 168 response->setRemotePort(info.socket_address.port()); | 169 response->setRemotePort(info.socket_address.port()); |
| 169 response->setConnectionID(info.connection_id); | 170 response->setConnectionID(info.connection_id); |
| 170 response->setConnectionReused(info.connection_reused); | 171 response->setConnectionReused(info.connection_reused); |
| 171 response->setDownloadFilePath(FilePathToWebString(info.download_file_path)); | 172 response->setDownloadFilePath(FilePathToWebString(info.download_file_path)); |
| 172 | 173 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 745 |
| 745 void WebURLLoaderImpl::setDefersLoading(bool value) { | 746 void WebURLLoaderImpl::setDefersLoading(bool value) { |
| 746 context_->SetDefersLoading(value); | 747 context_->SetDefersLoading(value); |
| 747 } | 748 } |
| 748 | 749 |
| 749 void WebURLLoaderImpl::UpdateRoutingId(int new_routing_id) { | 750 void WebURLLoaderImpl::UpdateRoutingId(int new_routing_id) { |
| 750 context_->UpdateRoutingId(new_routing_id); | 751 context_->UpdateRoutingId(new_routing_id); |
| 751 } | 752 } |
| 752 | 753 |
| 753 } // namespace webkit_glue | 754 } // namespace webkit_glue |
| OLD | NEW |