blob: c80e43251ddf406a4cefc4fd66c8a6d4e48a1b43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_
#define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_
#include "base/basictypes.h"
#include "content/common/content_export.h"
class CONTENT_EXPORT DownloadStatusUpdaterDelegate {
public:
// Returns true if the progress is known (i.e. we know the final size
// of all downloads).
virtual bool IsDownloadProgressKnown() = 0;
// Returns the number of downloads that are in progress.
virtual int64 GetInProgressDownloadCount() = 0;
// Returns the amount of received data, in bytes.
virtual int64 GetReceivedDownloadBytes() = 0;
// Returns the final size of all downloads, in bytes.
virtual int64 GetTotalDownloadBytes() = 0;
protected:
virtual ~DownloadStatusUpdaterDelegate() {}
};
#endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_DELEGATE_H_
|