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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 // Get all response headers, as a HttpResponseHeaders object. See comments | 327 // Get all response headers, as a HttpResponseHeaders object. See comments |
328 // in HttpResponseHeaders class as to the format of the data. | 328 // in HttpResponseHeaders class as to the format of the data. |
329 net::HttpResponseHeaders* response_headers() const; | 329 net::HttpResponseHeaders* response_headers() const; |
330 | 330 |
331 // Get the SSL connection info. | 331 // Get the SSL connection info. |
332 const net::SSLInfo& ssl_info() const { | 332 const net::SSLInfo& ssl_info() const { |
333 return response_info_.ssl_info; | 333 return response_info_.ssl_info; |
334 } | 334 } |
335 | 335 |
336 // Returns the platform specific file handle for the standalone file that | |
337 // contains response data. base::kInvalidPlatformFileValue is returned if | |
338 // such file is not available. | |
339 base::PlatformFile response_data_file() { | |
340 return response_info_.response_data_file; | |
341 } | |
342 | |
343 // Returns the cookie values included in the response, if the request is one | 336 // Returns the cookie values included in the response, if the request is one |
344 // that can have cookies. Returns true if the request is a cookie-bearing | 337 // that can have cookies. Returns true if the request is a cookie-bearing |
345 // type, false otherwise. This method may only be called once the | 338 // type, false otherwise. This method may only be called once the |
346 // delegate's OnResponseStarted method has been called. | 339 // delegate's OnResponseStarted method has been called. |
347 bool GetResponseCookies(ResponseCookies* cookies); | 340 bool GetResponseCookies(ResponseCookies* cookies); |
348 | 341 |
349 // Get the mime type. This method may only be called once the delegate's | 342 // Get the mime type. This method may only be called once the delegate's |
350 // OnResponseStarted method has been called. | 343 // OnResponseStarted method has been called. |
351 void GetMimeType(std::string* mime_type); | 344 void GetMimeType(std::string* mime_type); |
352 | 345 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 #define URLREQUEST_COUNT_DTOR() url_request_metrics.object_count-- | 570 #define URLREQUEST_COUNT_DTOR() url_request_metrics.object_count-- |
578 | 571 |
579 #else // disable leak checking in release builds... | 572 #else // disable leak checking in release builds... |
580 | 573 |
581 #define URLREQUEST_COUNT_CTOR() | 574 #define URLREQUEST_COUNT_CTOR() |
582 #define URLREQUEST_COUNT_DTOR() | 575 #define URLREQUEST_COUNT_DTOR() |
583 | 576 |
584 #endif // #ifndef NDEBUG | 577 #endif // #ifndef NDEBUG |
585 | 578 |
586 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 579 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |