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

Side by Side Diff: content/test/test_url_fetcher_factory.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/test_url_fetcher_factory.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/test_url_fetcher_factory.h" 5 #include "content/test/test_url_fetcher_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 void TestURLFetcher::SetReferrer(const std::string& referrer) { 70 void TestURLFetcher::SetReferrer(const std::string& referrer) {
71 } 71 }
72 72
73 void TestURLFetcher::SetExtraRequestHeaders( 73 void TestURLFetcher::SetExtraRequestHeaders(
74 const std::string& extra_request_headers) { 74 const std::string& extra_request_headers) {
75 fake_extra_request_headers_.Clear(); 75 fake_extra_request_headers_.Clear();
76 fake_extra_request_headers_.AddHeadersFromString(extra_request_headers); 76 fake_extra_request_headers_.AddHeadersFromString(extra_request_headers);
77 } 77 }
78 78
79 void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) {
80 fake_extra_request_headers_.AddHeaderFromString(header_line);
81 }
82
79 void TestURLFetcher::GetExtraRequestHeaders(net::HttpRequestHeaders* headers) { 83 void TestURLFetcher::GetExtraRequestHeaders(net::HttpRequestHeaders* headers) {
80 *headers = fake_extra_request_headers_; 84 *headers = fake_extra_request_headers_;
81 } 85 }
82 86
83 void TestURLFetcher::SetRequestContext( 87 void TestURLFetcher::SetRequestContext(
84 net::URLRequestContextGetter* request_context_getter) { 88 net::URLRequestContextGetter* request_context_getter) {
85 } 89 }
86 90
87 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) { 91 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) {
88 } 92 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 320
317 URLFetcherImplFactory::~URLFetcherImplFactory() {} 321 URLFetcherImplFactory::~URLFetcherImplFactory() {}
318 322
319 content::URLFetcher* URLFetcherImplFactory::CreateURLFetcher( 323 content::URLFetcher* URLFetcherImplFactory::CreateURLFetcher(
320 int id, 324 int id,
321 const GURL& url, 325 const GURL& url,
322 content::URLFetcher::RequestType request_type, 326 content::URLFetcher::RequestType request_type,
323 content::URLFetcherDelegate* d) { 327 content::URLFetcherDelegate* d) {
324 return new URLFetcherImpl(url, request_type, d); 328 return new URLFetcherImpl(url, request_type, d);
325 } 329 }
OLDNEW
« no previous file with comments | « content/test/test_url_fetcher_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698