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_FILE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
7 | 7 |
8 #include "content/browser/download/download_file.h" | 8 #include "content/browser/download/download_file.h" |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "content/browser/byte_stream.h" |
15 #include "content/browser/download/base_file.h" | 16 #include "content/browser/download/base_file.h" |
16 #include "content/browser/download/byte_stream.h" | |
17 #include "content/public/browser/download_save_info.h" | 17 #include "content/public/browser/download_save_info.h" |
18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class ByteStreamReader; | 21 class ByteStreamReader; |
22 class DownloadDestinationObserver; | 22 class DownloadDestinationObserver; |
23 class DownloadManager; | 23 class DownloadManager; |
24 class PowerSaveBlocker; | 24 class PowerSaveBlocker; |
25 struct DownloadCreateInfo; | 25 struct DownloadCreateInfo; |
26 | 26 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 // RAII handle to keep the system from sleeping while we're downloading. | 106 // RAII handle to keep the system from sleeping while we're downloading. |
107 scoped_ptr<PowerSaveBlocker> power_save_blocker_; | 107 scoped_ptr<PowerSaveBlocker> power_save_blocker_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); | 109 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
OLD | NEW |