Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 16 |
| 17 #include <string> | |
|
wtc
2014/05/19 19:08:53
Is this suggested by some tool? I'm just wondering
| |
| 18 | |
| 17 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
| 18 #include "base/compiler_specific.h" | 20 #include "base/compiler_specific.h" |
| 19 #include "net/base/net_export.h" | 21 #include "net/base/net_export.h" |
| 20 #include "net/url_request/url_fetcher.h" | 22 #include "net/url_request/url_fetcher.h" |
| 21 | 23 |
| 22 namespace net { | 24 namespace net { |
| 23 class URLFetcherCore; | 25 class URLFetcherCore; |
| 24 class URLFetcherDelegate; | 26 class URLFetcherDelegate; |
| 25 class URLFetcherFactory; | 27 class URLFetcherFactory; |
| 26 | 28 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 static int GetNumFetcherCores(); | 122 static int GetNumFetcherCores(); |
| 121 | 123 |
| 122 const scoped_refptr<URLFetcherCore> core_; | 124 const scoped_refptr<URLFetcherCore> core_; |
| 123 | 125 |
| 124 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl); | 126 DISALLOW_COPY_AND_ASSIGN(URLFetcherImpl); |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace net | 129 } // namespace net |
| 128 | 130 |
| 129 #endif // NET_URL_REQUEST_URL_FETCHER_IMPL_H_ | 131 #endif // NET_URL_REQUEST_URL_FETCHER_IMPL_H_ |
| OLD | NEW |