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

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

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 6 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 | « net/udp/udp_socket_unittest.cc ('k') | net/url_request/url_fetcher_core.cc » ('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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { 150 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const {
151 return fake_response_headers_; 151 return fake_response_headers_.get();
152 } 152 }
153 153
154 HostPortPair TestURLFetcher::GetSocketAddress() const { 154 HostPortPair TestURLFetcher::GetSocketAddress() const {
155 NOTIMPLEMENTED(); 155 NOTIMPLEMENTED();
156 return HostPortPair(); 156 return HostPortPair();
157 } 157 }
158 158
159 bool TestURLFetcher::WasFetchedViaProxy() const { 159 bool TestURLFetcher::WasFetchedViaProxy() const {
160 return fake_was_fetched_via_proxy_; 160 return fake_was_fetched_via_proxy_;
161 } 161 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( 375 URLFetcher* URLFetcherImplFactory::CreateURLFetcher(
376 int id, 376 int id,
377 const GURL& url, 377 const GURL& url,
378 URLFetcher::RequestType request_type, 378 URLFetcher::RequestType request_type,
379 URLFetcherDelegate* d) { 379 URLFetcherDelegate* d) {
380 return new URLFetcherImpl(url, request_type, d); 380 return new URLFetcherImpl(url, request_type, d);
381 } 381 }
382 382
383 } // namespace net 383 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_socket_unittest.cc ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698