| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 // Get all response headers, as a HttpResponseHeaders object. See comments | 301 // Get all response headers, as a HttpResponseHeaders object. See comments |
| 302 // in HttpResponseHeaders class as to the format of the data. | 302 // in HttpResponseHeaders class as to the format of the data. |
| 303 net::HttpResponseHeaders* response_headers() const; | 303 net::HttpResponseHeaders* response_headers() const; |
| 304 | 304 |
| 305 // Get the SSL connection info. | 305 // Get the SSL connection info. |
| 306 const net::SSLInfo& ssl_info() const { | 306 const net::SSLInfo& ssl_info() const { |
| 307 return response_info_.ssl_info; | 307 return response_info_.ssl_info; |
| 308 } | 308 } |
| 309 | 309 |
| 310 // Returns the platform specific file handle for the standalone file that |
| 311 // contains response data. base::kInvalidPlatformFileValue is returned if |
| 312 // such file is not available. |
| 313 base::PlatformFile response_data_file() { |
| 314 return response_info_.response_data_file; |
| 315 } |
| 316 |
| 310 // Returns the cookie values included in the response, if the request is one | 317 // Returns the cookie values included in the response, if the request is one |
| 311 // that can have cookies. Returns true if the request is a cookie-bearing | 318 // that can have cookies. Returns true if the request is a cookie-bearing |
| 312 // type, false otherwise. This method may only be called once the | 319 // type, false otherwise. This method may only be called once the |
| 313 // delegate's OnResponseStarted method has been called. | 320 // delegate's OnResponseStarted method has been called. |
| 314 bool GetResponseCookies(ResponseCookies* cookies); | 321 bool GetResponseCookies(ResponseCookies* cookies); |
| 315 | 322 |
| 316 // Get the mime type. This method may only be called once the delegate's | 323 // Get the mime type. This method may only be called once the delegate's |
| 317 // OnResponseStarted method has been called. | 324 // OnResponseStarted method has been called. |
| 318 void GetMimeType(std::string* mime_type); | 325 void GetMimeType(std::string* mime_type); |
| 319 | 326 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 #define URLREQUEST_COUNT_DTOR() url_request_metrics.object_count-- | 524 #define URLREQUEST_COUNT_DTOR() url_request_metrics.object_count-- |
| 518 | 525 |
| 519 #else // disable leak checking in release builds... | 526 #else // disable leak checking in release builds... |
| 520 | 527 |
| 521 #define URLREQUEST_COUNT_CTOR() | 528 #define URLREQUEST_COUNT_CTOR() |
| 522 #define URLREQUEST_COUNT_DTOR() | 529 #define URLREQUEST_COUNT_DTOR() |
| 523 | 530 |
| 524 #endif // #ifndef NDEBUG | 531 #endif // #ifndef NDEBUG |
| 525 | 532 |
| 526 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 533 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |