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

Unified Diff: net/url_request/url_fetcher.h

Issue 12226008: Allow no content-type for POST, PUT and PATCH methods. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move the DCHECK to SetUploadData. Created 7 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
« no previous file with comments | « no previous file | net/url_request/url_fetcher_core.cc » ('j') | net/url_request/url_fetcher_core.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher.h
diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h
index 6d3f0e99862b40599fae667c2b35f9af22bf0e08..30740550b3fc056ffe4fd8025e977661e5946ea0 100644
--- a/net/url_request/url_fetcher.h
+++ b/net/url_request/url_fetcher.h
@@ -83,8 +83,9 @@ class NET_EXPORT URLFetcher {
PUT,
PATCH,
- // This is POST method with no body, no content-type header and
- // no content-length header.
+ // DEPRECATED: Now POST should work well for empty body, and this value
+ // will be removed soon.
+ // This is POST method with no body, and no content-type header.
POST_WITHOUT_BODY,
};
@@ -288,8 +289,9 @@ class NET_EXPORT URLFetcher {
// true, caller takes responsibility for the file, and it will not
// be removed once the URLFetcher is destroyed. User should not take
// ownership more than once, or call this method after taking ownership.
- virtual bool GetResponseAsFilePath(bool take_ownership,
- base::FilePath* out_response_path) const = 0;
+ virtual bool GetResponseAsFilePath(
+ bool take_ownership,
+ base::FilePath* out_response_path) const = 0;
};
} // namespace net
« no previous file with comments | « no previous file | net/url_request/url_fetcher_core.cc » ('j') | net/url_request/url_fetcher_core.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698