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

Side by Side Diff: chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.h

Issue 2469933002: Offline Pages: Replace Observer::OfflinePageModelChanged with OfflinePageAdded. (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_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 22 matching lines...) Expand all
33 33
34 OfflinePageEvaluationBridge(JNIEnv* env, 34 OfflinePageEvaluationBridge(JNIEnv* env,
35 content::BrowserContext* browser_context, 35 content::BrowserContext* browser_context,
36 OfflinePageModel* offline_page_model, 36 OfflinePageModel* offline_page_model,
37 RequestCoordinator* request_coordinator); 37 RequestCoordinator* request_coordinator);
38 38
39 ~OfflinePageEvaluationBridge() override; 39 ~OfflinePageEvaluationBridge() override;
40 40
41 // OfflinePageModel::Observer implementation. 41 // OfflinePageModel::Observer implementation.
42 void OfflinePageModelLoaded(OfflinePageModel* model) override; 42 void OfflinePageModelLoaded(OfflinePageModel* model) override;
43 void OfflinePageModelChanged(OfflinePageModel* model) override; 43 void OfflinePageAdded(OfflinePageModel* model,
44 const OfflinePageItem& added_page) override;
44 void OfflinePageDeleted(int64_t offline_id, 45 void OfflinePageDeleted(int64_t offline_id,
45 const ClientId& client_id) override; 46 const ClientId& client_id) override;
46 47
47 // RequestCoordinator::Observer implementation. 48 // RequestCoordinator::Observer implementation.
48 void OnAdded(const SavePageRequest& request) override; 49 void OnAdded(const SavePageRequest& request) override;
49 void OnCompleted(const SavePageRequest& request, 50 void OnCompleted(const SavePageRequest& request,
50 RequestNotifier::BackgroundSavePageResult status) override; 51 RequestNotifier::BackgroundSavePageResult status) override;
51 void OnChanged(const SavePageRequest& request) override; 52 void OnChanged(const SavePageRequest& request) override;
52 53
53 void GetAllPages(JNIEnv* env, 54 void GetAllPages(JNIEnv* env,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Not owned. 100 // Not owned.
100 RequestCoordinator* request_coordinator_; 101 RequestCoordinator* request_coordinator_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge); 103 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge);
103 }; 104 };
104 105
105 } // namespace android 106 } // namespace android
106 } // namespace offline_pages 107 } // namespace offline_pages
107 108
108 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATI ON_BRIDGE_H_ 109 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATI ON_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698