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

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

Issue 10915307: URLFetcher uses a TaskRunner instead of a message loop. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changes to url_fetcher.h Created 8 years, 3 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
« no previous file with comments | « net/url_request/test_url_fetcher_factory.h ('k') | net/url_request/url_fetcher.h » ('j') | 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 "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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 int TestURLFetcher::GetMaxRetries() const { 118 int TestURLFetcher::GetMaxRetries() const {
119 return fake_max_retries_; 119 return fake_max_retries_;
120 } 120 }
121 121
122 base::TimeDelta TestURLFetcher::GetBackoffDelay() const { 122 base::TimeDelta TestURLFetcher::GetBackoffDelay() const {
123 return fake_backoff_delay_; 123 return fake_backoff_delay_;
124 } 124 }
125 125
126 void TestURLFetcher::SaveResponseToFileAtPath( 126 void TestURLFetcher::SaveResponseToFileAtPath(
127 const FilePath& file_path, 127 const FilePath& file_path,
128 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { 128 scoped_refptr<base::TaskRunner> file_task_runner) {
129 } 129 }
130 130
131 void TestURLFetcher::SaveResponseToTemporaryFile( 131 void TestURLFetcher::SaveResponseToTemporaryFile(
132 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { 132 scoped_refptr<base::TaskRunner> file_task_runner) {
133 } 133 }
134 134
135 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { 135 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const {
136 return fake_response_headers_; 136 return fake_response_headers_;
137 } 137 }
138 138
139 HostPortPair TestURLFetcher::GetSocketAddress() const { 139 HostPortPair TestURLFetcher::GetSocketAddress() const {
140 NOTIMPLEMENTED(); 140 NOTIMPLEMENTED();
141 return HostPortPair(); 141 return HostPortPair();
142 } 142 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 355
356 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( 356 URLFetcher* URLFetcherImplFactory::CreateURLFetcher(
357 int id, 357 int id,
358 const GURL& url, 358 const GURL& url,
359 URLFetcher::RequestType request_type, 359 URLFetcher::RequestType request_type,
360 URLFetcherDelegate* d) { 360 URLFetcherDelegate* d) {
361 return new URLFetcherImpl(url, request_type, d); 361 return new URLFetcherImpl(url, request_type, d);
362 } 362 }
363 363
364 } // namespace net 364 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/test_url_fetcher_factory.h ('k') | net/url_request/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698