Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/download/download_file_manager.h

Issue 3179017: FBTF: Remove "obviously" unneeded standard C++ library #includes. (Closed)
Patch Set: fixed mac oopsie Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/download/download_file.h ('k') | chrome/browser/download/download_shelf.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 // tab (profile) where the download was initiated. In the event of a tab closure 34 // tab (profile) where the download was initiated. In the event of a tab closure
35 // during a download, the DownloadFileManager will continue to route data to the 35 // during a download, the DownloadFileManager will continue to route data to the
36 // appropriate DownloadManager. In progress downloads are cancelled for a 36 // appropriate DownloadManager. In progress downloads are cancelled for a
37 // DownloadManager that exits (such as when closing a profile). 37 // DownloadManager that exits (such as when closing a profile).
38 38
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 #include <string>
45 44
46 #include "base/basictypes.h" 45 #include "base/basictypes.h"
47 #include "base/hash_tables.h" 46 #include "base/hash_tables.h"
48 #include "base/lock.h" 47 #include "base/lock.h"
49 #include "base/ref_counted.h" 48 #include "base/ref_counted.h"
50 #include "base/timer.h" 49 #include "base/timer.h"
51 #include "gfx/native_widget_types.h" 50 #include "gfx/native_widget_types.h"
52 51
53 struct DownloadBuffer; 52 struct DownloadBuffer;
54 struct DownloadCreateInfo; 53 struct DownloadCreateInfo;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Used for progress updates on the UI thread, mapping download->id() to bytes 171 // Used for progress updates on the UI thread, mapping download->id() to bytes
173 // received so far. Written to by the file thread and read by the UI thread. 172 // received so far. Written to by the file thread and read by the UI thread.
174 typedef base::hash_map<int, int64> ProgressMap; 173 typedef base::hash_map<int, int64> ProgressMap;
175 ProgressMap ui_progress_; 174 ProgressMap ui_progress_;
176 Lock progress_lock_; 175 Lock progress_lock_;
177 176
178 DISALLOW_COPY_AND_ASSIGN(DownloadFileManager); 177 DISALLOW_COPY_AND_ASSIGN(DownloadFileManager);
179 }; 178 };
180 179
181 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ 180 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_file.h ('k') | chrome/browser/download/download_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698