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

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: Address eroman's comments 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->setRemoteIPAddress(
191 WebString::fromUTF8(info.socket_address.host()));
192 response->setRemotePort(info.socket_address.port());
190 response->setConnectionID(info.connection_id); 193 response->setConnectionID(info.connection_id);
191 response->setConnectionReused(info.connection_reused); 194 response->setConnectionReused(info.connection_reused);
192 response->setDownloadFilePath(FilePathToWebString(info.download_file_path)); 195 response->setDownloadFilePath(FilePathToWebString(info.download_file_path));
193 196
194 WebURLLoadTiming timing; 197 WebURLLoadTiming timing;
195 timing.initialize(); 198 timing.initialize();
196 const ResourceLoadTimingInfo& timing_info = info.load_timing; 199 const ResourceLoadTimingInfo& timing_info = info.load_timing;
197 timing.setRequestTime(timing_info.base_time.ToDoubleT()); 200 timing.setRequestTime(timing_info.base_time.ToDoubleT());
198 timing.setProxyStart(timing_info.proxy_start); 201 timing.setProxyStart(timing_info.proxy_start);
199 timing.setProxyEnd(timing_info.proxy_end); 202 timing.setProxyEnd(timing_info.proxy_end);
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 750
748 void WebURLLoaderImpl::cancel() { 751 void WebURLLoaderImpl::cancel() {
749 context_->Cancel(); 752 context_->Cancel();
750 } 753 }
751 754
752 void WebURLLoaderImpl::setDefersLoading(bool value) { 755 void WebURLLoaderImpl::setDefersLoading(bool value) {
753 context_->SetDefersLoading(value); 756 context_->SetDefersLoading(value);
754 } 757 }
755 758
756 } // namespace webkit_glue 759 } // namespace webkit_glue
OLDNEW
« net/http/http_response_info.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