diff options
Diffstat (limited to 'net/http/http_request_info.h')
-rw-r--r-- | net/http/http_request_info.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/http/http_request_info.h b/net/http/http_request_info.h index 7ada539..c36e21a 100644 --- a/net/http/http_request_info.h +++ b/net/http/http_request_info.h @@ -10,10 +10,11 @@ #include "googleurl/src/gurl.h" #include "net/base/request_priority.h" #include "net/base/upload_data.h" +#include "net/http/http_request_headers.h" namespace net { -class HttpRequestInfo { +struct HttpRequestInfo { public: HttpRequestInfo() : load_flags(0), priority(LOWEST) { } @@ -27,12 +28,8 @@ class HttpRequestInfo { // The method to use (GET, POST, etc.). std::string method; - // The user agent string to use. TODO(darin): we should just add this to - // extra_headers - std::string user_agent; - - // Any extra request headers (\r\n-delimited). - std::string extra_headers; + // Any extra request headers (including User-Agent). + HttpRequestHeaders extra_headers; // Any upload data. scoped_refptr<UploadData> upload_data; |