| OLD | NEW |
| (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_ |
| OLD | NEW |