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

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

Issue 10689093: Move Rename functionality from DownloadFileManager to DownloadFileImple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload fater merging past revert to figure out if I still have a patch. 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,
157 DownloadInterruptReason reason) = 0; 155 DownloadInterruptReason reason) = 0;
158 156
159 // Remove downloads after remove_begin (inclusive) and before remove_end 157 // Remove downloads after remove_begin (inclusive) and before remove_end
160 // (exclusive). You may pass in null Time values to do an unbounded delete 158 // (exclusive). You may pass in null Time values to do an unbounded delete
161 // in either direction. 159 // in either direction.
162 virtual int RemoveDownloadsBetween(base::Time remove_begin, 160 virtual int RemoveDownloadsBetween(base::Time remove_begin,
163 base::Time remove_end) = 0; 161 base::Time remove_end) = 0;
164 162
165 // Remove downloads will delete all downloads that have a timestamp that is 163 // Remove downloads will delete all downloads that have a timestamp that is
166 // the same or more recent than |remove_begin|. The number of downloads 164 // the same or more recent than |remove_begin|. The number of downloads
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 protected: 245 protected:
248 virtual ~DownloadManager() {} 246 virtual ~DownloadManager() {}
249 247
250 private: 248 private:
251 friend class base::RefCountedThreadSafe<DownloadManager>; 249 friend class base::RefCountedThreadSafe<DownloadManager>;
252 }; 250 };
253 251
254 } // namespace content 252 } // namespace content
255 253
256 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 254 #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