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

Side by Side Diff: net/url_request/test_url_fetcher_factory.cc

Issue 26230003: net: Allow URLFetcher users to inject custom URLFetcherResponseWriter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
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 "net/url_request/test_url_fetcher_factory.h" 5 #include "net/url_request/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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 void TestURLFetcher::SaveResponseToFileAtPath( 141 void TestURLFetcher::SaveResponseToFileAtPath(
142 const base::FilePath& file_path, 142 const base::FilePath& file_path,
143 scoped_refptr<base::TaskRunner> file_task_runner) { 143 scoped_refptr<base::TaskRunner> file_task_runner) {
144 } 144 }
145 145
146 void TestURLFetcher::SaveResponseToTemporaryFile( 146 void TestURLFetcher::SaveResponseToTemporaryFile(
147 scoped_refptr<base::TaskRunner> file_task_runner) { 147 scoped_refptr<base::TaskRunner> file_task_runner) {
148 } 148 }
149 149
150 void TestURLFetcher::SaveResponseWithWriter(
151 scoped_ptr<URLFetcherResponseWriter> response_writer) {
152 }
153
150 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { 154 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const {
151 return fake_response_headers_.get(); 155 return fake_response_headers_.get();
152 } 156 }
153 157
154 HostPortPair TestURLFetcher::GetSocketAddress() const { 158 HostPortPair TestURLFetcher::GetSocketAddress() const {
155 NOTIMPLEMENTED(); 159 NOTIMPLEMENTED();
156 return HostPortPair(); 160 return HostPortPair();
157 } 161 }
158 162
159 bool TestURLFetcher::WasFetchedViaProxy() const { 163 bool TestURLFetcher::WasFetchedViaProxy() const {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 374
371 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( 375 URLFetcher* URLFetcherImplFactory::CreateURLFetcher(
372 int id, 376 int id,
373 const GURL& url, 377 const GURL& url,
374 URLFetcher::RequestType request_type, 378 URLFetcher::RequestType request_type,
375 URLFetcherDelegate* d) { 379 URLFetcherDelegate* d) {
376 return new URLFetcherImpl(url, request_type, d); 380 return new URLFetcherImpl(url, request_type, d);
377 } 381 }
378 382
379 } // namespace net 383 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698