| 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_HTTP_HTTP_REQUEST_INFO_H__ | 5 #ifndef NET_HTTP_HTTP_REQUEST_INFO_H__ |
| 6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ | 6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "net/base/upload_data.h" | 10 #include "net/base/upload_data.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class HttpRequestInfo { | 14 class HttpRequestInfo { |
| 15 public: | 15 public: |
| 16 HttpRequestInfo() : load_flags(0) { |
| 17 } |
| 18 |
| 16 // The requested URL. | 19 // The requested URL. |
| 17 GURL url; | 20 GURL url; |
| 18 | 21 |
| 19 // The referring URL (if any). | 22 // The referring URL (if any). |
| 20 GURL referrer; | 23 GURL referrer; |
| 21 | 24 |
| 22 // The method to use (GET, POST, etc.). | 25 // The method to use (GET, POST, etc.). |
| 23 std::string method; | 26 std::string method; |
| 24 | 27 |
| 25 // The user agent string to use. TODO(darin): we should just add this to | 28 // The user agent string to use. TODO(darin): we should just add this to |
| 26 // extra_headers | 29 // extra_headers |
| 27 std::string user_agent; | 30 std::string user_agent; |
| 28 | 31 |
| 29 // Any extra request headers (\r\n-delimited). | 32 // Any extra request headers (\r\n-delimited). |
| 30 std::string extra_headers; | 33 std::string extra_headers; |
| 31 | 34 |
| 32 // Any upload data. | 35 // Any upload data. |
| 33 scoped_refptr<UploadData> upload_data; | 36 scoped_refptr<UploadData> upload_data; |
| 34 | 37 |
| 35 // Any load flags (see load_flags.h). | 38 // Any load flags (see load_flags.h). |
| 36 int load_flags; | 39 int load_flags; |
| 37 }; | 40 }; |
| 38 | 41 |
| 39 } // namespace net | 42 } // namespace net |
| 40 | 43 |
| 41 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ | 44 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ |
| OLD | NEW |