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

Side by Side Diff: chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.h

Issue 2239133002: [Offline pages] Downloads UI: Adding bridge for issuing notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@download-notifications
Patch Set: Addressing CR feedback Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICATION _BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICATION _BRIDGE_H_
7
8 #include <stdint.h>
9
10 #include "base/android/jni_android.h"
11 #include "base/macros.h"
12 #include "components/offline_pages/downloads/offline_page_download_notifier.h"
13
14 namespace offline_pages {
15 namespace android {
16
17 // Bridge for offline page related keyed services to issue download
18 // notifications in Android.
19 class OfflinePageNotificationBridge : public OfflinePageDownloadNotifier {
20 public:
21 ~OfflinePageNotificationBridge() override {}
22
23 void NotifyDownloadSuccessful(const DownloadUIItem& item) override;
24 void NotifyDownloadFailed(const DownloadUIItem& item) override;
25 void NotifyDownloadProgress(const DownloadUIItem& item) override;
26 void NotifyDownloadPaused(const DownloadUIItem& item) override;
27 void NotifyDownloadInterrupted(const DownloadUIItem& item) override;
28 void NotifyDownloadCanceled(const DownloadUIItem& item) override;
29 };
30
31 } // namespace android
32 } // namespace offline_pages
33
34 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICAT ION_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698