Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: webkit/glue/weburlloader_impl.cc

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/file_path.h" 9 #include "base/file_path.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 response->setSecurityInfo(info.security_info); 180 response->setSecurityInfo(info.security_info);
181 response->setAppCacheID(info.appcache_id); 181 response->setAppCacheID(info.appcache_id);
182 response->setAppCacheManifestURL(info.appcache_manifest_url); 182 response->setAppCacheManifestURL(info.appcache_manifest_url);
183 response->setWasCached(!info.load_timing.base_time.is_null() && 183 response->setWasCached(!info.load_timing.base_time.is_null() &&
184 info.response_time < info.load_timing.base_time); 184 info.response_time < info.load_timing.base_time);
185 response->setWasFetchedViaSPDY(info.was_fetched_via_spdy); 185 response->setWasFetchedViaSPDY(info.was_fetched_via_spdy);
186 response->setWasNpnNegotiated(info.was_npn_negotiated); 186 response->setWasNpnNegotiated(info.was_npn_negotiated);
187 response->setWasAlternateProtocolAvailable( 187 response->setWasAlternateProtocolAvailable(
188 info.was_alternate_protocol_available); 188 info.was_alternate_protocol_available);
189 response->setWasFetchedViaProxy(info.was_fetched_via_proxy); 189 response->setWasFetchedViaProxy(info.was_fetched_via_proxy);
190 response->setSocketAddress(WebString::fromUTF8(info.socket_address));
190 response->setConnectionID(info.connection_id); 191 response->setConnectionID(info.connection_id);
191 response->setConnectionReused(info.connection_reused); 192 response->setConnectionReused(info.connection_reused);
192 response->setDownloadFilePath(FilePathToWebString(info.download_file_path)); 193 response->setDownloadFilePath(FilePathToWebString(info.download_file_path));
193 194
194 WebURLLoadTiming timing; 195 WebURLLoadTiming timing;
195 timing.initialize(); 196 timing.initialize();
196 const ResourceLoadTimingInfo& timing_info = info.load_timing; 197 const ResourceLoadTimingInfo& timing_info = info.load_timing;
197 timing.setRequestTime(timing_info.base_time.ToDoubleT()); 198 timing.setRequestTime(timing_info.base_time.ToDoubleT());
198 timing.setProxyStart(timing_info.proxy_start); 199 timing.setProxyStart(timing_info.proxy_start);
199 timing.setProxyEnd(timing_info.proxy_end); 200 timing.setProxyEnd(timing_info.proxy_end);
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 748
748 void WebURLLoaderImpl::cancel() { 749 void WebURLLoaderImpl::cancel() {
749 context_->Cancel(); 750 context_->Cancel();
750 } 751 }
751 752
752 void WebURLLoaderImpl::setDefersLoading(bool value) { 753 void WebURLLoaderImpl::setDefersLoading(bool value) {
753 context_->SetDefersLoading(value); 754 context_->SetDefersLoading(value);
754 } 755 }
755 756
756 } // namespace webkit_glue 757 } // namespace webkit_glue
OLDNEW
« net/url_request/url_request_ftp_job.cc ('K') | « webkit/glue/resource_loader_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698