OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 net::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 CHROME_COMMON_NET_URL_FETCHER_H_ | 14 #ifndef CHROME_COMMON_NET_URL_FETCHER_H_ |
15 #define CHROME_COMMON_NET_URL_FETCHER_H_ | 15 #define CHROME_COMMON_NET_URL_FETCHER_H_ |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 base::TimeDelta backoff_delay_; | 213 base::TimeDelta backoff_delay_; |
214 // Maximum retries allowed. | 214 // Maximum retries allowed. |
215 int max_retries_; | 215 int max_retries_; |
216 | 216 |
217 static bool g_interception_enabled; | 217 static bool g_interception_enabled; |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(URLFetcher); | 219 DISALLOW_COPY_AND_ASSIGN(URLFetcher); |
220 }; | 220 }; |
221 | 221 |
222 #endif // CHROME_COMMON_NET_URL_FETCHER_H_ | 222 #endif // CHROME_COMMON_NET_URL_FETCHER_H_ |
OLD | NEW |