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 // The DownloadFileManager owns a set of DownloadFile objects, each of which | 5 // The DownloadFileManager owns a set of DownloadFile objects, each of which |
6 // represent one in progress download and performs the disk IO for that | 6 // represent one in progress download and performs the disk IO for that |
7 // download. The DownloadFileManager itself is a singleton object owned by the | 7 // download. The DownloadFileManager itself is a singleton object owned by the |
8 // ResourceDispatcherHost. | 8 // ResourceDispatcherHost. |
9 // | 9 // |
10 // The DownloadFileManager uses the file_thread for performing file write | 10 // The DownloadFileManager uses the file_thread for performing file write |
(...skipping 28 matching lines...) Expand all Loading... |
39 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ | 39 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ |
40 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ | 40 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ |
41 #pragma once | 41 #pragma once |
42 | 42 |
43 #include <map> | 43 #include <map> |
44 | 44 |
45 #include "base/basictypes.h" | 45 #include "base/basictypes.h" |
46 #include "base/hash_tables.h" | 46 #include "base/hash_tables.h" |
47 #include "base/ref_counted.h" | 47 #include "base/ref_counted.h" |
48 #include "base/timer.h" | 48 #include "base/timer.h" |
49 #include "gfx/native_widget_types.h" | 49 #include "ui/gfx/native_widget_types.h" |
50 | 50 |
51 struct DownloadBuffer; | 51 struct DownloadBuffer; |
52 struct DownloadCreateInfo; | 52 struct DownloadCreateInfo; |
53 struct DownloadSaveInfo; | 53 struct DownloadSaveInfo; |
54 class DownloadFile; | 54 class DownloadFile; |
55 class DownloadManager; | 55 class DownloadManager; |
56 class FilePath; | 56 class FilePath; |
57 class GURL; | 57 class GURL; |
58 class ResourceDispatcherHost; | 58 class ResourceDispatcherHost; |
59 class URLRequestContextGetter; | 59 class URLRequestContextGetter; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Schedule periodic updates of the download progress. This timer | 139 // Schedule periodic updates of the download progress. This timer |
140 // is controlled from the FILE thread, and posts updates to the UI thread. | 140 // is controlled from the FILE thread, and posts updates to the UI thread. |
141 base::RepeatingTimer<DownloadFileManager> update_timer_; | 141 base::RepeatingTimer<DownloadFileManager> update_timer_; |
142 | 142 |
143 ResourceDispatcherHost* resource_dispatcher_host_; | 143 ResourceDispatcherHost* resource_dispatcher_host_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(DownloadFileManager); | 145 DISALLOW_COPY_AND_ASSIGN(DownloadFileManager); |
146 }; | 146 }; |
147 | 147 |
148 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ | 148 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ |
OLD | NEW |