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

Side by Side Diff: net/url_request/url_request.h

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 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 20 matching lines...) Expand all
31 class FilePath; 31 class FilePath;
32 32
33 // This stores the values of the Set-Cookie headers received during the request. 33 // This stores the values of the Set-Cookie headers received during the request.
34 // Each item in the vector corresponds to a Set-Cookie: line received, 34 // Each item in the vector corresponds to a Set-Cookie: line received,
35 // excluding the "Set-Cookie:" part. 35 // excluding the "Set-Cookie:" part.
36 typedef std::vector<std::string> ResponseCookies; 36 typedef std::vector<std::string> ResponseCookies;
37 37
38 namespace net { 38 namespace net {
39 39
40 class CookieOptions; 40 class CookieOptions;
41 class HostPortPair;
41 class IOBuffer; 42 class IOBuffer;
42 class SSLCertRequestInfo; 43 class SSLCertRequestInfo;
43 class UploadData; 44 class UploadData;
44 class URLRequestContext; 45 class URLRequestContext;
45 class URLRequestJob; 46 class URLRequestJob;
46 class X509Certificate; 47 class X509Certificate;
47 48
48 //----------------------------------------------------------------------------- 49 //-----------------------------------------------------------------------------
49 // A class representing the asynchronous load of a data stream from an URL. 50 // A class representing the asynchronous load of a data stream from an URL.
50 // 51 //
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // is available. 410 // is available.
410 bool was_alternate_protocol_available() const { 411 bool was_alternate_protocol_available() const {
411 return response_info_.was_alternate_protocol_available; 412 return response_info_.was_alternate_protocol_available;
412 } 413 }
413 414
414 // Returns true if the URLRequest was delivered through a proxy. 415 // Returns true if the URLRequest was delivered through a proxy.
415 bool was_fetched_via_proxy() const { 416 bool was_fetched_via_proxy() const {
416 return response_info_.was_fetched_via_proxy; 417 return response_info_.was_fetched_via_proxy;
417 } 418 }
418 419
420 // Returns the host and port that the content was fetched from. See
421 // http_response_info.h for caveats relating to cached content.
422 HostPortPair GetSocketAddress() const;
423
419 // Get all response headers, as a HttpResponseHeaders object. See comments 424 // Get all response headers, as a HttpResponseHeaders object. See comments
420 // in HttpResponseHeaders class as to the format of the data. 425 // in HttpResponseHeaders class as to the format of the data.
421 net::HttpResponseHeaders* response_headers() const; 426 net::HttpResponseHeaders* response_headers() const;
422 427
423 // Get the SSL connection info. 428 // Get the SSL connection info.
424 const net::SSLInfo& ssl_info() const { 429 const net::SSLInfo& ssl_info() const {
425 return response_info_.ssl_info; 430 return response_info_.ssl_info;
426 } 431 }
427 432
428 // Returns the cookie values included in the response, if the request is one 433 // Returns the cookie values included in the response, if the request is one
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 const uint64 identifier_; 664 const uint64 identifier_;
660 665
661 base::debug::LeakTracker<URLRequest> leak_tracker_; 666 base::debug::LeakTracker<URLRequest> leak_tracker_;
662 667
663 DISALLOW_COPY_AND_ASSIGN(URLRequest); 668 DISALLOW_COPY_AND_ASSIGN(URLRequest);
664 }; 669 };
665 670
666 } // namespace net 671 } // namespace net
667 672
668 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 673 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698