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

Side by Side Diff: content/public/browser/download_manager.h

Issue 10702151: Revert 146162 - Move Rename functionality from DownloadFileManager to DownloadFileImple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
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 DownloadManager object manages the process of downloading, including 5 // The DownloadManager object manages the process of downloading, including
6 // updates to the history system and providing the information for displaying 6 // updates to the history system and providing the information for displaying
7 // the downloads view in the Destinations tab. There is one DownloadManager per 7 // the downloads view in the Destinations tab. There is one DownloadManager per
8 // active browser context in Chrome. 8 // active browser context in Chrome.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual void CancelDownload(int32 download_id) = 0; 145 virtual void CancelDownload(int32 download_id) = 0;
146 146
147 // Called when there is an error in the download. 147 // Called when there is an error in the download.
148 // |download_id| is the ID of the download. 148 // |download_id| is the ID of the download.
149 // |size| is the number of bytes that are currently downloaded. 149 // |size| is the number of bytes that are currently downloaded.
150 // |hash_state| is the current state of the hash of the data that has been 150 // |hash_state| is the current state of the hash of the data that has been
151 // downloaded. 151 // downloaded.
152 // |reason| is a download interrupt reason code. 152 // |reason| is a download interrupt reason code.
153 virtual void OnDownloadInterrupted( 153 virtual void OnDownloadInterrupted(
154 int32 download_id, 154 int32 download_id,
155 int64 size,
156 const std::string& hash_state,
155 DownloadInterruptReason reason) = 0; 157 DownloadInterruptReason reason) = 0;
156 158
157 // Remove downloads after remove_begin (inclusive) and before remove_end 159 // Remove downloads after remove_begin (inclusive) and before remove_end
158 // (exclusive). You may pass in null Time values to do an unbounded delete 160 // (exclusive). You may pass in null Time values to do an unbounded delete
159 // in either direction. 161 // in either direction.
160 virtual int RemoveDownloadsBetween(base::Time remove_begin, 162 virtual int RemoveDownloadsBetween(base::Time remove_begin,
161 base::Time remove_end) = 0; 163 base::Time remove_end) = 0;
162 164
163 // Remove downloads will delete all downloads that have a timestamp that is 165 // Remove downloads will delete all downloads that have a timestamp that is
164 // the same or more recent than |remove_begin|. The number of downloads 166 // the same or more recent than |remove_begin|. The number of downloads
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 protected: 247 protected:
246 virtual ~DownloadManager() {} 248 virtual ~DownloadManager() {}
247 249
248 private: 250 private:
249 friend class base::RefCountedThreadSafe<DownloadManager>; 251 friend class base::RefCountedThreadSafe<DownloadManager>;
250 }; 252 };
251 253
252 } // namespace content 254 } // namespace content
253 255
254 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 256 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698