| 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 #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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 // is available. | 409 // is available. |
| 410 bool was_alternate_protocol_available() const { | 410 bool was_alternate_protocol_available() const { |
| 411 return response_info_.was_alternate_protocol_available; | 411 return response_info_.was_alternate_protocol_available; |
| 412 } | 412 } |
| 413 | 413 |
| 414 // Returns true if the URLRequest was delivered through a proxy. | 414 // Returns true if the URLRequest was delivered through a proxy. |
| 415 bool was_fetched_via_proxy() const { | 415 bool was_fetched_via_proxy() const { |
| 416 return response_info_.was_fetched_via_proxy; | 416 return response_info_.was_fetched_via_proxy; |
| 417 } | 417 } |
| 418 | 418 |
| 419 // Returns the IP:port that the content was fetched from, or empty if |
| 420 // this is not available. See http_response_info.h for caveats relating |
| 421 // to cached content. |
| 422 std::string 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 net::RequestPriority priority_; | 658 net::RequestPriority priority_; |
| 654 | 659 |
| 655 base::debug::LeakTracker<URLRequest> leak_tracker_; | 660 base::debug::LeakTracker<URLRequest> leak_tracker_; |
| 656 | 661 |
| 657 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 662 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 658 }; | 663 }; |
| 659 | 664 |
| 660 } // namespace net | 665 } // namespace net |
| 661 | 666 |
| 662 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 667 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |