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 #pragma once | |
8 | 7 |
9 #include "content/browser/download/download_file.h" | 8 #include "content/browser/download/download_file.h" |
10 | 9 |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
14 #include "base/time.h" | 13 #include "base/time.h" |
15 #include "base/timer.h" | 14 #include "base/timer.h" |
16 #include "content/browser/download/base_file.h" | 15 #include "content/browser/download/base_file.h" |
17 #include "content/browser/download/byte_stream.h" | 16 #include "content/browser/download/byte_stream.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 102 |
104 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; | 103 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; |
105 | 104 |
106 // RAII handle to keep the system from sleeping while we're downloading. | 105 // RAII handle to keep the system from sleeping while we're downloading. |
107 scoped_ptr<content::PowerSaveBlocker> power_save_blocker_; | 106 scoped_ptr<content::PowerSaveBlocker> power_save_blocker_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); | 108 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); |
110 }; | 109 }; |
111 | 110 |
112 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 111 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
OLD | NEW |