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

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

Issue 10069016: TabContents -> WebContentsImpl, part 9. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | content/browser/download/download_item_impl.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) 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 // 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 // ResourceDispatcherHostImpl. 8 // ResourceDispatcherHostImpl.
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 13 matching lines...) Expand all
24 // Cancel operations perform the inverse order when triggered by a user action: 24 // Cancel operations perform the inverse order when triggered by a user action:
25 // ui_thread (user click) 25 // ui_thread (user click)
26 // |----> cancel command ---->| 26 // |----> cancel command ---->|
27 // file_thread (close file) 27 // file_thread (close file)
28 // |----> cancel command ---->| 28 // |----> cancel command ---->|
29 // io_thread (stops net IO 29 // io_thread (stops net IO
30 // for download) 30 // for download)
31 // 31 //
32 // The DownloadFileManager tracks download requests, mapping from a download 32 // The DownloadFileManager tracks download requests, mapping from a download
33 // ID (unique integer created in the IO thread) to the DownloadManager for the 33 // ID (unique integer created in the IO thread) to the DownloadManager for the
34 // tab (profile) where the download was initiated. In the event of a tab closure 34 // contents (profile) where the download was initiated. In the event of a
35 // during a download, the DownloadFileManager will continue to route data to the 35 // contents closure during a download, the DownloadFileManager will continue to
36 // appropriate DownloadManager. In progress downloads are cancelled for a 36 // route data to the appropriate DownloadManager. In progress downloads are
37 // DownloadManager that exits (such as when closing a profile). 37 // cancelled for a DownloadManager that exits (such as when closing a profile).
38 38
39 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ 39 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_
40 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ 40 #define CONTENT_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/atomic_sequence_num.h" 45 #include "base/atomic_sequence_num.h"
46 #include "base/basictypes.h" 46 #include "base/basictypes.h"
47 #include "base/gtest_prod_util.h" 47 #include "base/gtest_prod_util.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Schedule periodic updates of the download progress. This timer 196 // Schedule periodic updates of the download progress. This timer
197 // is controlled from the FILE thread, and posts updates to the UI thread. 197 // is controlled from the FILE thread, and posts updates to the UI thread.
198 scoped_ptr<base::RepeatingTimer<DownloadFileManager> > update_timer_; 198 scoped_ptr<base::RepeatingTimer<DownloadFileManager> > update_timer_;
199 199
200 scoped_ptr<DownloadFileFactory> download_file_factory_; 200 scoped_ptr<DownloadFileFactory> download_file_factory_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(DownloadFileManager); 202 DISALLOW_COPY_AND_ASSIGN(DownloadFileManager);
203 }; 203 };
204 204
205 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_ 205 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698