Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Unified Diff: net/http/http_request_info.h

Issue 1604011: Use HttpRequestHeaders for extra_headers. (Closed)
Patch Set: Address eroman comments. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_request_headers_unittest.cc ('k') | net/http/http_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_request_info.h
diff --git a/net/http/http_request_info.h b/net/http/http_request_info.h
index 7ada539168f2b261aa735cb677947f50cfc1ef78..c36e21a51f56fced08638a454028da3eb7da99ac 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;
« no previous file with comments | « net/http/http_request_headers_unittest.cc ('k') | net/http/http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698