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

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

Issue 2826: Move the download code to new directories: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/download/download_exe.cc ('k') | chrome/browser/download/download_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Objects that handle file operations for downloads, on the download thread. 5 // Objects that handle file operations for downloads, on the download thread.
6 // 6 //
7 // The DownloadFileManager owns a set of DownloadFile objects, each of which 7 // The DownloadFileManager owns a set of DownloadFile objects, each of which
8 // represent one in progress download and performs the disk IO for that 8 // represent one in progress download and performs the disk IO for that
9 // download. The DownloadFileManager itself is a singleton object owned by the 9 // download. The DownloadFileManager itself is a singleton object owned by the
10 // ResourceDispatcherHost. 10 // ResourceDispatcherHost.
(...skipping 20 matching lines...) Expand all
31 // io_thread (stops net IO 31 // io_thread (stops net IO
32 // for download) 32 // for download)
33 // 33 //
34 // The DownloadFileManager tracks download requests, mapping from a download 34 // The DownloadFileManager tracks download requests, mapping from a download
35 // ID (unique integer created in the IO thread) to the DownloadManager for the 35 // ID (unique integer created in the IO thread) to the DownloadManager for the
36 // tab (profile) where the download was initiated. In the event of a tab closure 36 // tab (profile) where the download was initiated. In the event of a tab closure
37 // during a download, the DownloadFileManager will continue to route data to the 37 // during a download, the DownloadFileManager will continue to route data to the
38 // appropriate DownloadManager. In progress downloads are cancelled for a 38 // appropriate DownloadManager. In progress downloads are cancelled for a
39 // DownloadManager that exits (such as when closing a profile). 39 // DownloadManager that exits (such as when closing a profile).
40 40
41 #ifndef CHROME_BROWSER_DOWNLOAD_FILE_H__ 41 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H__
42 #define CHROME_BROWSER_DOWNLOAD_FILE_H__ 42 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H__
43 43
44 #include <string> 44 #include <string>
45 #include <vector> 45 #include <vector>
46 46
47 #include "base/basictypes.h" 47 #include "base/basictypes.h"
48 #include "base/hash_tables.h" 48 #include "base/hash_tables.h"
49 #include "base/lock.h" 49 #include "base/lock.h"
50 #include "base/ref_counted.h" 50 #include "base/ref_counted.h"
51 #include "base/thread.h" 51 #include "base/thread.h"
52 #include "base/timer.h" 52 #include "base/timer.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 // Used for progress updates on the UI thread, mapping download->id() to bytes 264 // Used for progress updates on the UI thread, mapping download->id() to bytes
265 // received so far. Written to by the file thread and read by the UI thread. 265 // received so far. Written to by the file thread and read by the UI thread.
266 typedef base::hash_map<int, int64> ProgressMap; 266 typedef base::hash_map<int, int64> ProgressMap;
267 ProgressMap ui_progress_; 267 ProgressMap ui_progress_;
268 Lock progress_lock_; 268 Lock progress_lock_;
269 269
270 DISALLOW_EVIL_CONSTRUCTORS(DownloadFileManager); 270 DISALLOW_EVIL_CONSTRUCTORS(DownloadFileManager);
271 }; 271 };
272 272
273 #endif // CHROME_BROWSER_DOWNLOAD_FILE_H__ 273 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H__
OLDNEW
« no previous file with comments | « chrome/browser/download/download_exe.cc ('k') | chrome/browser/download/download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698