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

Side by Side Diff: net/url_request/url_fetcher_impl.h

Issue 10581012: Move test_url_fetcher_factory.* from content/ to net/url_request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove export annotations Created 8 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/url_request/test_url_fetcher_factory.cc ('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 // This file contains URLFetcher, a wrapper around URLRequest that handles 5 // This file contains URLFetcher, a wrapper around URLRequest that handles
6 // low-level details like thread safety, ref counting, and incremental buffer 6 // low-level details like thread safety, ref counting, and incremental buffer
7 // reading. This is useful for callers who simply want to get the data from a 7 // reading. This is useful for callers who simply want to get the data from a
8 // URL and don't care about all the nitty-gritty details. 8 // URL and don't care about all the nitty-gritty details.
9 // 9 //
10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a 10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a
11 // temporary situation. We will work on allowing support for multiple "io" 11 // temporary situation. We will work on allowing support for multiple "io"
12 // threads per process. 12 // threads per process.
13 13
14 #ifndef NET_URL_REQUEST_URL_FETCHER_IMPL_H_ 14 #ifndef NET_URL_REQUEST_URL_FETCHER_IMPL_H_
15 #define NET_URL_REQUEST_URL_FETCHER_IMPL_H_ 15 #define NET_URL_REQUEST_URL_FETCHER_IMPL_H_
16 #pragma once 16 #pragma once
17 17
18 #include "base/basictypes.h" 18 #include "base/basictypes.h"
19 #include "base/compiler_specific.h" 19 #include "base/compiler_specific.h"
20 #include "net/base/net_export.h" 20 #include "net/base/net_export.h"
21 #include "net/url_request/url_fetcher.h" 21 #include "net/url_request/url_fetcher.h"
22 22
23 namespace net { 23 namespace net {
24 class URLFetcherCore; 24 class URLFetcherCore;
25 class URLFetcherDelegate; 25 class URLFetcherDelegate;
26 class URLFetcherFactory; 26 class URLFetcherFactory;
27 27
28 // TODO(akalin): Remove NET_EXPORT once URLFetcher::Create is in net/. 28 class NET_EXPORT_PRIVATE URLFetcherImpl : public URLFetcher {
29 class NET_EXPORT URLFetcherImpl : public URLFetcher {
30 public: 29 public:
31 // |url| is the URL to send the request to. 30 // |url| is the URL to send the request to.
32 // |request_type| is the type of request to make. 31 // |request_type| is the type of request to make.
33 // |d| the object that will receive the callback on fetch completion. 32 // |d| the object that will receive the callback on fetch completion.
34 URLFetcherImpl(const GURL& url, 33 URLFetcherImpl(const GURL& url,
35 RequestType request_type, 34 RequestType request_type,
36 URLFetcherDelegate* d); 35 URLFetcherDelegate* d);
37 virtual ~URLFetcherImpl(); 36 virtual ~URLFetcherImpl();
38 37
39 // URLFetcher implementation: 38 // URLFetcher implementation:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static int GetNumFetcherCores(); 113 static int GetNumFetcherCores();
115 114
116 const scoped_refptr<URLFetcherCore> core_; 115 const scoped_refptr<URLFetcherCore> core_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl); 117 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl);
119 }; 118 };
120 119
121 } // namespace net 120 } // namespace net
122 121
123 #endif // NET_URL_REQUEST_URL_FETCHER_IMPL_H_ 122 #endif // NET_URL_REQUEST_URL_FETCHER_IMPL_H_
OLDNEW
« no previous file with comments | « net/url_request/test_url_fetcher_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698