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/android/offline_pages/downloads/offline_page_notification_bridge.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICATION _BRIDGE_H_ 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_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICATION _BRIDGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/offline_pages/downloads/offline_page_download_notifier.h" 12 #include "components/offline_pages/core/downloads/offline_page_download_notifier .h"
13 13
14 namespace offline_pages { 14 namespace offline_pages {
15 namespace android { 15 namespace android {
16 16
17 // Bridge for offline page related keyed services to issue download 17 // Bridge for offline page related keyed services to issue download
18 // notifications in Android. 18 // notifications in Android.
19 class OfflinePageNotificationBridge : public OfflinePageDownloadNotifier { 19 class OfflinePageNotificationBridge : public OfflinePageDownloadNotifier {
20 public: 20 public:
21 ~OfflinePageNotificationBridge() override {} 21 ~OfflinePageNotificationBridge() override {}
22 22
23 void NotifyDownloadSuccessful(const DownloadUIItem& item) override; 23 void NotifyDownloadSuccessful(const DownloadUIItem& item) override;
24 void NotifyDownloadFailed(const DownloadUIItem& item) override; 24 void NotifyDownloadFailed(const DownloadUIItem& item) override;
25 void NotifyDownloadProgress(const DownloadUIItem& item) override; 25 void NotifyDownloadProgress(const DownloadUIItem& item) override;
26 void NotifyDownloadPaused(const DownloadUIItem& item) override; 26 void NotifyDownloadPaused(const DownloadUIItem& item) override;
27 void NotifyDownloadInterrupted(const DownloadUIItem& item) override; 27 void NotifyDownloadInterrupted(const DownloadUIItem& item) override;
28 void NotifyDownloadCanceled(const DownloadUIItem& item) override; 28 void NotifyDownloadCanceled(const DownloadUIItem& item) override;
29 29
30 void ShowDownloadingToast(); 30 void ShowDownloadingToast();
31 }; 31 };
32 32
33 } // namespace android 33 } // namespace android
34 } // namespace offline_pages 34 } // namespace offline_pages
35 35
36 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICAT ION_BRIDGE_H_ 36 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_NOTIFICAT ION_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698