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

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

Issue 8403017: Rename URLFetcher to be URLFetcherImpl, now that we have the content::URLFetcher interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/content_tests.gypi ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "content/common/net/url_fetcher.h" 11 #include "content/common/net/url_fetcher_impl.h"
12 #include "content/public/common/url_fetcher_delegate.h" 12 #include "content/public/common/url_fetcher_delegate.h"
13 #include "net/base/host_port_pair.h" 13 #include "net/base/host_port_pair.h"
14 #include "net/http/http_response_headers.h" 14 #include "net/http/http_response_headers.h"
15 #include "net/url_request/url_request_status.h" 15 #include "net/url_request/url_request_status.h"
16 16
17 ScopedURLFetcherFactory::ScopedURLFetcherFactory( 17 ScopedURLFetcherFactory::ScopedURLFetcherFactory(
18 content::URLFetcherFactory* factory) { 18 content::URLFetcherFactory* factory) {
19 DCHECK(!URLFetcher::factory()); 19 DCHECK(!URLFetcherImpl::factory());
20 URLFetcher::set_factory(factory); 20 URLFetcherImpl::set_factory(factory);
21 } 21 }
22 22
23 ScopedURLFetcherFactory::~ScopedURLFetcherFactory() { 23 ScopedURLFetcherFactory::~ScopedURLFetcherFactory() {
24 DCHECK(URLFetcher::factory()); 24 DCHECK(URLFetcherImpl::factory());
25 URLFetcher::set_factory(NULL); 25 URLFetcherImpl::set_factory(NULL);
26 } 26 }
27 27
28 TestURLFetcher::TestURLFetcher(int id, 28 TestURLFetcher::TestURLFetcher(int id,
29 const GURL& url, 29 const GURL& url,
30 URLFetcher::RequestType request_type, 30 URLFetcher::RequestType request_type,
31 content::URLFetcherDelegate* d) 31 content::URLFetcherDelegate* d)
32 : id_(id), 32 : id_(id),
33 original_url_(url), 33 original_url_(url),
34 delegate_(d), 34 delegate_(d),
35 did_receive_last_chunk_(false), 35 did_receive_last_chunk_(false),
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 URLFetcherFactory::URLFetcherFactory() {} 314 URLFetcherFactory::URLFetcherFactory() {}
315 315
316 URLFetcherFactory::~URLFetcherFactory() {} 316 URLFetcherFactory::~URLFetcherFactory() {}
317 317
318 content::URLFetcher* URLFetcherFactory::CreateURLFetcher( 318 content::URLFetcher* URLFetcherFactory::CreateURLFetcher(
319 int id, 319 int id,
320 const GURL& url, 320 const GURL& url,
321 content::URLFetcher::RequestType request_type, 321 content::URLFetcher::RequestType request_type,
322 content::URLFetcherDelegate* d) { 322 content::URLFetcherDelegate* d) {
323 return new URLFetcher(url, request_type, d); 323 return new URLFetcherImpl(url, request_type, d);
324 } 324 }
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698