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

Side by Side Diff: net/url_request/url_request_job.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "net/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 base::TimeDelta::FromMilliseconds(1), 391 base::TimeDelta::FromMilliseconds(1),
392 base::TimeDelta::FromSeconds(10), 100); 392 base::TimeDelta::FromSeconds(10), 100);
393 return; 393 return;
394 } 394 }
395 default: 395 default:
396 NOTREACHED(); 396 NOTREACHED();
397 return; 397 return;
398 } 398 }
399 } 399 }
400 400
401 std::string URLRequestJob::GetSocketAddress() const {
402 return "";
403 }
404
401 URLRequestJob::~URLRequestJob() { 405 URLRequestJob::~URLRequestJob() {
402 g_url_request_job_tracker.RemoveJob(this); 406 g_url_request_job_tracker.RemoveJob(this);
403 } 407 }
404 408
405 void URLRequestJob::NotifyHeadersComplete() { 409 void URLRequestJob::NotifyHeadersComplete() {
406 if (!request_ || !request_->delegate()) 410 if (!request_ || !request_->delegate())
407 return; // The request was destroyed, so there is no more work to do. 411 return; // The request was destroyed, so there is no more work to do.
408 412
409 if (has_handled_response_) 413 if (has_handled_response_)
410 return; 414 return;
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 931
928 if (is_compressed_) { 932 if (is_compressed_) {
929 COMPRESSION_HISTOGRAM("NoProxy.BytesBeforeCompression", compressed_B); 933 COMPRESSION_HISTOGRAM("NoProxy.BytesBeforeCompression", compressed_B);
930 COMPRESSION_HISTOGRAM("NoProxy.BytesAfterCompression", decompressed_B); 934 COMPRESSION_HISTOGRAM("NoProxy.BytesAfterCompression", decompressed_B);
931 } else { 935 } else {
932 COMPRESSION_HISTOGRAM("NoProxy.ShouldHaveBeenCompressed", decompressed_B); 936 COMPRESSION_HISTOGRAM("NoProxy.ShouldHaveBeenCompressed", decompressed_B);
933 } 937 }
934 } 938 }
935 939
936 } // namespace net 940 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698