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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_CORE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_CORE_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_CORE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_CORE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 class PowerSaveBlocker; | 23 class PowerSaveBlocker; |
24 } // namespace device | 24 } // namespace device |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 class HttpResponseHeaders; | 27 class HttpResponseHeaders; |
28 class URLRequest; | 28 class URLRequest; |
29 class URLRequestStatus; | 29 class URLRequestStatus; |
30 } // namespace net | 30 } // namespace net |
31 | 31 |
32 namespace content { | 32 namespace content { |
33 class DownloadManagerImpl; | |
34 class ByteStreamReader; | 33 class ByteStreamReader; |
35 class ByteStreamWriter; | 34 class ByteStreamWriter; |
36 struct DownloadCreateInfo; | 35 struct DownloadCreateInfo; |
37 | 36 |
38 // This class encapsulates the core logic for reading data from a URLRequest and | 37 // This class encapsulates the core logic for reading data from a URLRequest and |
39 // writing it into a ByteStream. It's common to both DownloadResourceHandler and | 38 // writing it into a ByteStream. It's common to both DownloadResourceHandler and |
40 // UrlDownloader. | 39 // UrlDownloader. |
41 // | 40 // |
42 // Created, lives on and dies on the IO thread. | 41 // Created, lives on and dies on the IO thread. |
43 class CONTENT_EXPORT DownloadRequestCore | 42 class CONTENT_EXPORT DownloadRequestCore |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 166 |
168 // Each successful OnWillRead will yield a buffer of this size. | 167 // Each successful OnWillRead will yield a buffer of this size. |
169 static const int kReadBufSize = 32768; // bytes | 168 static const int kReadBufSize = 32768; // bytes |
170 | 169 |
171 DISALLOW_COPY_AND_ASSIGN(DownloadRequestCore); | 170 DISALLOW_COPY_AND_ASSIGN(DownloadRequestCore); |
172 }; | 171 }; |
173 | 172 |
174 } // namespace content | 173 } // namespace content |
175 | 174 |
176 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_CORE_H_ | 175 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_CORE_H_ |
OLD | NEW |