Commit 5210bbe1 authored by zelidrag@chromium.org's avatar zelidrag@chromium.org

Added HTTP DELETE request type to content:URLFetcher.

BUG=chromium-os:24126
TEST=none
Review URL: http://codereview.chromium.org/8898016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114295 0039d316-1c4b-4281-b951-d872f2087c98
parent 81c60a84
...@@ -814,6 +814,10 @@ void URLFetcherImpl::Core::StartURLRequest() { ...@@ -814,6 +814,10 @@ void URLFetcherImpl::Core::StartURLRequest() {
request_->set_method("HEAD"); request_->set_method("HEAD");
break; break;
case DELETE_REQUEST:
request_->set_method("DELETE");
break;
default: default:
NOTREACHED(); NOTREACHED();
} }
......
...@@ -74,6 +74,8 @@ class CONTENT_EXPORT URLFetcher { ...@@ -74,6 +74,8 @@ class CONTENT_EXPORT URLFetcher {
GET, GET,
POST, POST,
HEAD, HEAD,
DELETE_REQUEST, // DELETE is already taken on Windows.
// <winnt.h> defines a DELETE macro.
}; };
// |url| is the URL to send the request to. // |url| is the URL to send the request to.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment