| Index: components/offline_pages/downloads/offline_page_download_notifier.h
|
| diff --git a/components/offline_pages/downloads/offline_page_download_notifier.h b/components/offline_pages/downloads/offline_page_download_notifier.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c35c80d86b4f109d6ed81c947d59f3aec5e4b488
|
| --- /dev/null
|
| +++ b/components/offline_pages/downloads/offline_page_download_notifier.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2016 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 COMPONENTS_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_NOTIFIER_H_
|
| +#define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_NOTIFIER_H_
|
| +
|
| +#include "components/offline_pages/downloads/download_ui_item.h"
|
| +
|
| +namespace offline_pages {
|
| +
|
| +struct OfflinePageDownloadNotifier {
|
| + public:
|
| + virtual ~OfflinePageDownloadNotifier() = default;
|
| +
|
| + virtual void NotifyDownloadSuccessful(const DownloadUIItem& item) = 0;
|
| + virtual void NotifyDownloadFailed(const DownloadUIItem& item) = 0;
|
| + virtual void NotifyDownloadProgress(const DownloadUIItem& item) = 0;
|
| + virtual void NotifyDownloadPaused(const DownloadUIItem& item) = 0;
|
| + virtual void NotifyDownloadInterrupted(const DownloadUIItem& item) = 0;
|
| + virtual void NotifyDownloadCanceled(const DownloadUIItem& item) = 0;
|
| +};
|
| +
|
| +} // namespace offline_pages
|
| +
|
| +#endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_NOTIFIER_H_
|
|
|