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

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

Issue 7192016: chrome.experimental.downloads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merged db_handle, id; onCreated, onErased Created 9 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) 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 class DownloadStatusUpdaterDelegate { 10 class DownloadStatusUpdaterDelegate {
11 public: 11 public:
12 // Returns true if the progress is known (i.e. we know the final size 12 // Returns true if the progress is known (i.e. we know the final size
13 // of all downloads). 13 // of all downloads).
14 virtual bool IsDownloadProgressKnown() = 0; 14 virtual bool IsDownloadProgressKnown() = 0;
15 15
16 // Returns the number of downloads that are in progress. 16 // Returns the number of downloads that are in progress.
17 virtual int64 GetInProgressDownloadCount() = 0; 17 virtual int64 GetInProgressDownloadCount() const = 0;
18 18
19 // Returns the amount of received data, in bytes. 19 // Returns the amount of received data, in bytes.
20 virtual int64 GetReceivedDownloadBytes() = 0; 20 virtual int64 GetReceivedDownloadBytes() = 0;
21 21
22 // Returns the final size of all downloads, in bytes. 22 // Returns the final size of all downloads, in bytes.
23 virtual int64 GetTotalDownloadBytes() = 0; 23 virtual int64 GetTotalDownloadBytes() = 0;
24 24
25 protected: 25 protected:
26 virtual ~DownloadStatusUpdaterDelegate() {} 26 virtual ~DownloadStatusUpdaterDelegate() {}
27 }; 27 };
28 28
29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_ 29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_query_fields.h ('k') | chrome/browser/download/simple_download_item_fields.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698