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

Unified Diff: content/public/common/url_fetcher.h

Issue 9342007: Add HTTP PUT request type to content:URLFetcher (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
Index: content/public/common/url_fetcher.h
===================================================================
--- content/public/common/url_fetcher.h (revision 120612)
+++ content/public/common/url_fetcher.h (working copy)
@@ -76,6 +76,7 @@
HEAD,
DELETE_REQUEST, // DELETE is already taken on Windows.
// <winnt.h> defines a DELETE macro.
+ PUT,
};
// |url| is the URL to send the request to.
@@ -142,6 +143,11 @@
virtual void SetExtraRequestHeaders(
const std::string& extra_request_headers) = 0;
+ // Add header (with format $key ":" $value) to the request headers.
wtc 2012/02/06 23:34:07 Nit: I'd omit the dollar signs ($) in the format d
kuan 2012/02/06 23:58:17 Done.
+ // Must be called before the request is started.
+ virtual void AddRequestHeaderFromString(
+ const base::StringPiece& header_line) = 0;
wtc 2012/02/06 23:34:07 It's important to explain the difference between t
kuan 2012/02/06 23:58:17 Done.
+
virtual void GetExtraRequestHeaders(net::HttpRequestHeaders* headers) = 0;
// Set the net::URLRequestContext on the request. Must be called before the

Powered by Google App Engine
This is Rietveld 408576698