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

Side by Side Diff: chrome/browser/android/offline_pages/downloads/offline_page_download_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
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_DOWNLOAD_BRI DGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI DGE_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"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const base::android::JavaParamRef<jobject>& obj, 63 const base::android::JavaParamRef<jobject>& obj,
64 const base::android::JavaParamRef<jobject>& j_tab); 64 const base::android::JavaParamRef<jobject>& j_tab);
65 65
66 // DownloadUIAdapter::Observer implementation. 66 // DownloadUIAdapter::Observer implementation.
67 void ItemsLoaded() override; 67 void ItemsLoaded() override;
68 void ItemAdded(const DownloadUIItem& item) override; 68 void ItemAdded(const DownloadUIItem& item) override;
69 void ItemUpdated(const DownloadUIItem& item) override; 69 void ItemUpdated(const DownloadUIItem& item) override;
70 void ItemDeleted(const std::string& guid) override; 70 void ItemDeleted(const std::string& guid) override;
71 71
72 private: 72 private:
73 void SavePageCallback(OfflinePageModel::SavePageResult result, 73 void SavePageCallback(const DownloadUIItem& item,
74 OfflinePageModel::SavePageResult result,
74 int64_t offline_id); 75 int64_t offline_id);
75 76
76 JavaObjectWeakGlobalRef weak_java_ref_; 77 JavaObjectWeakGlobalRef weak_java_ref_;
77 // Not owned. 78 // Not owned.
78 DownloadUIAdapter* download_ui_adapter_; 79 DownloadUIAdapter* download_ui_adapter_;
79 80
80 base::WeakPtrFactory<OfflinePageDownloadBridge> weak_ptr_factory_; 81 base::WeakPtrFactory<OfflinePageDownloadBridge> weak_ptr_factory_;
81 DISALLOW_COPY_AND_ASSIGN(OfflinePageDownloadBridge); 82 DISALLOW_COPY_AND_ASSIGN(OfflinePageDownloadBridge);
82 }; 83 };
83 84
84 } // namespace android 85 } // namespace android
85 } // namespace offline_pages 86 } // namespace offline_pages
86 87
87 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_ BRIDGE_H_ 88 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_ BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698