Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 15 matching lines...) Expand all Loading... | |
| 26 | 26 |
| 27 namespace base { | 27 namespace base { |
| 28 class Time; | 28 class Time; |
| 29 } // namespace base | 29 } // namespace base |
| 30 | 30 |
| 31 namespace net { | 31 namespace net { |
| 32 class CookieOptions; | 32 class CookieOptions; |
| 33 class IOBuffer; | 33 class IOBuffer; |
| 34 class SSLCertRequestInfo; | 34 class SSLCertRequestInfo; |
| 35 class UploadData; | 35 class UploadData; |
| 36 class URLRequestJob; | |
| 36 class X509Certificate; | 37 class X509Certificate; |
| 37 } // namespace net | 38 } // namespace net |
| 38 | 39 |
| 39 class FilePath; | 40 class FilePath; |
| 40 class URLRequestContext; | 41 class URLRequestContext; |
| 41 class URLRequestJob; | |
| 42 | 42 |
| 43 // This stores the values of the Set-Cookie headers received during the request. | 43 // This stores the values of the Set-Cookie headers received during the request. |
| 44 // Each item in the vector corresponds to a Set-Cookie: line received, | 44 // Each item in the vector corresponds to a Set-Cookie: line received, |
| 45 // excluding the "Set-Cookie:" part. | 45 // excluding the "Set-Cookie:" part. |
| 46 typedef std::vector<std::string> ResponseCookies; | 46 typedef std::vector<std::string> ResponseCookies; |
|
wtc
2010/11/30 01:51:53
It seems that we should also move FilePath,
URLReq
| |
| 47 | 47 |
| 48 namespace net { | |
| 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 // |
| 51 // The lifetime of an instance of this class is completely controlled by the | 52 // The lifetime of an instance of this class is completely controlled by the |
| 52 // consumer, and the instance is not required to live on the heap or be | 53 // consumer, and the instance is not required to live on the heap or be |
| 53 // allocated in any special way. It is also valid to delete an URLRequest | 54 // allocated in any special way. It is also valid to delete an URLRequest |
| 54 // object during the handling of a callback to its delegate. Of course, once | 55 // object during the handling of a callback to its delegate. Of course, once |
| 55 // the URLRequest is deleted, no further callbacks to its delegate will occur. | 56 // the URLRequest is deleted, no further callbacks to its delegate will occur. |
| 56 // | 57 // |
| 57 // NOTE: All usage of all instances of this class should be on the same thread. | 58 // NOTE: All usage of all instances of this class should be on the same thread. |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 636 | 637 |
| 637 // The priority level for this request. Objects like ClientSocketPool use | 638 // The priority level for this request. Objects like ClientSocketPool use |
| 638 // this to determine which URLRequest to allocate sockets to first. | 639 // this to determine which URLRequest to allocate sockets to first. |
| 639 net::RequestPriority priority_; | 640 net::RequestPriority priority_; |
| 640 | 641 |
| 641 base::debug::LeakTracker<URLRequest> leak_tracker_; | 642 base::debug::LeakTracker<URLRequest> leak_tracker_; |
| 642 | 643 |
| 643 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 644 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 644 }; | 645 }; |
| 645 | 646 |
| 647 } // namespace net | |
| 648 | |
| 649 typedef net::URLRequest URLRequest; | |
| 650 | |
| 646 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 651 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |