| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 // is available. | 387 // is available. |
| 388 bool was_alternate_protocol_available() const { | 388 bool was_alternate_protocol_available() const { |
| 389 return response_info_.was_alternate_protocol_available; | 389 return response_info_.was_alternate_protocol_available; |
| 390 } | 390 } |
| 391 | 391 |
| 392 // Returns true if the URLRequest was delivered through a proxy. | 392 // Returns true if the URLRequest was delivered through a proxy. |
| 393 bool was_fetched_via_proxy() const { | 393 bool was_fetched_via_proxy() const { |
| 394 return response_info_.was_fetched_via_proxy; | 394 return response_info_.was_fetched_via_proxy; |
| 395 } | 395 } |
| 396 | 396 |
| 397 const std::string& socket_address() const { |
| 398 return response_info_.socket_address; |
| 399 } |
| 400 |
| 397 // Get all response headers, as a HttpResponseHeaders object. See comments | 401 // Get all response headers, as a HttpResponseHeaders object. See comments |
| 398 // in HttpResponseHeaders class as to the format of the data. | 402 // in HttpResponseHeaders class as to the format of the data. |
| 399 net::HttpResponseHeaders* response_headers() const; | 403 net::HttpResponseHeaders* response_headers() const; |
| 400 | 404 |
| 401 // Get the SSL connection info. | 405 // Get the SSL connection info. |
| 402 const net::SSLInfo& ssl_info() const { | 406 const net::SSLInfo& ssl_info() const { |
| 403 return response_info_.ssl_info; | 407 return response_info_.ssl_info; |
| 404 } | 408 } |
| 405 | 409 |
| 406 // Returns the cookie values included in the response, if the request is one | 410 // Returns the cookie values included in the response, if the request is one |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 net::RequestPriority priority_; | 643 net::RequestPriority priority_; |
| 640 | 644 |
| 641 base::debug::LeakTracker<URLRequest> leak_tracker_; | 645 base::debug::LeakTracker<URLRequest> leak_tracker_; |
| 642 | 646 |
| 643 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 647 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 644 }; | 648 }; |
| 645 | 649 |
| 646 } // namespace net | 650 } // namespace net |
| 647 | 651 |
| 648 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 652 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |