| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 OfflinePageEvaluationBridge(JNIEnv* env, | 36 OfflinePageEvaluationBridge(JNIEnv* env, |
| 37 content::BrowserContext* browser_context, | 37 content::BrowserContext* browser_context, |
| 38 OfflinePageModel* offline_page_model, | 38 OfflinePageModel* offline_page_model, |
| 39 RequestCoordinator* request_coordinator); | 39 RequestCoordinator* request_coordinator); |
| 40 | 40 |
| 41 ~OfflinePageEvaluationBridge() override; | 41 ~OfflinePageEvaluationBridge() override; |
| 42 | 42 |
| 43 // OfflinePageModel::Observer implementation. | 43 // OfflinePageModel::Observer implementation. |
| 44 void OfflinePageModelLoaded(OfflinePageModel* model) override; | 44 void OfflinePageModelLoaded(OfflinePageModel* model) override; |
| 45 void OfflinePageModelChanged(OfflinePageModel* model) override; | 45 void OfflinePageAdded(OfflinePageModel* model, |
| 46 const OfflinePageItem& added_page) override; |
| 46 void OfflinePageDeleted(int64_t offline_id, | 47 void OfflinePageDeleted(int64_t offline_id, |
| 47 const ClientId& client_id) override; | 48 const ClientId& client_id) override; |
| 48 | 49 |
| 49 // RequestCoordinator::Observer implementation. | 50 // RequestCoordinator::Observer implementation. |
| 50 void OnAdded(const SavePageRequest& request) override; | 51 void OnAdded(const SavePageRequest& request) override; |
| 51 void OnCompleted(const SavePageRequest& request, | 52 void OnCompleted(const SavePageRequest& request, |
| 52 RequestNotifier::BackgroundSavePageResult status) override; | 53 RequestNotifier::BackgroundSavePageResult status) override; |
| 53 void OnChanged(const SavePageRequest& request) override; | 54 void OnChanged(const SavePageRequest& request) override; |
| 54 | 55 |
| 55 // OfflineEventLogger::Client implementation. | 56 // OfflineEventLogger::Client implementation. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Not owned. | 106 // Not owned. |
| 106 RequestCoordinator* request_coordinator_; | 107 RequestCoordinator* request_coordinator_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge); | 109 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace android | 112 } // namespace android |
| 112 } // namespace offline_pages | 113 } // namespace offline_pages |
| 113 | 114 |
| 114 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATI
ON_BRIDGE_H_ | 115 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATI
ON_BRIDGE_H_ |
| OLD | NEW |