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

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

Issue 10534154: Move URLFetcherImpl to net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows link error 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/net.gyp ('k') | net/url_request/url_fetcher_impl.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 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_ 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_
6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/debug/stack_trace.h" 14 #include "base/debug/stack_trace.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/platform_file.h" 20 #include "base/platform_file.h"
21 #include "base/timer.h" 21 #include "base/timer.h"
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 #include "net/base/host_port_pair.h" 23 #include "net/base/host_port_pair.h"
24 #include "net/base/net_export.h"
25 #include "net/http/http_request_headers.h" 24 #include "net/http/http_request_headers.h"
26 #include "net/url_request/url_fetcher.h" 25 #include "net/url_request/url_fetcher.h"
27 #include "net/url_request/url_request.h" 26 #include "net/url_request/url_request.h"
28 #include "net/url_request/url_request_status.h" 27 #include "net/url_request/url_request_status.h"
29 28
30 namespace base { 29 namespace base {
31 class MessageLoopProxy; 30 class MessageLoopProxy;
32 } // namespace base 31 } // namespace base
33 32
34 namespace net { 33 namespace net {
35 class HttpResponseHeaders; 34 class HttpResponseHeaders;
36 class IOBuffer; 35 class IOBuffer;
37 class URLFetcherDelegate; 36 class URLFetcherDelegate;
38 class URLRequestContextGetter; 37 class URLRequestContextGetter;
39 class URLRequestThrottlerEntryInterface; 38 class URLRequestThrottlerEntryInterface;
40 39
41 // TODO(akalin): Remove NET_EXPORT once URLFetcherImpl is in net/. 40 class URLFetcherCore
42 class NET_EXPORT URLFetcherCore
43 : public base::RefCountedThreadSafe<URLFetcherCore>, 41 : public base::RefCountedThreadSafe<URLFetcherCore>,
44 public URLRequest::Delegate { 42 public URLRequest::Delegate {
45 public: 43 public:
46 URLFetcherCore(URLFetcher* fetcher, 44 URLFetcherCore(URLFetcher* fetcher,
47 const GURL& original_url, 45 const GURL& original_url,
48 URLFetcher::RequestType request_type, 46 URLFetcher::RequestType request_type,
49 URLFetcherDelegate* d); 47 URLFetcherDelegate* d);
50 48
51 // Starts the load. It's important that this not happen in the constructor 49 // Starts the load. It's important that this not happen in the constructor
52 // because it causes the IO thread to begin AddRef()ing and Release()ing 50 // because it causes the IO thread to begin AddRef()ing and Release()ing
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 base::debug::StackTrace stack_trace_; 403 base::debug::StackTrace stack_trace_;
406 404
407 static base::LazyInstance<Registry> g_registry; 405 static base::LazyInstance<Registry> g_registry;
408 406
409 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 407 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
410 }; 408 };
411 409
412 } // namespace net 410 } // namespace net
413 411
414 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 412 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698