| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void OfflinePageAdded(OfflinePageModel* model, | 45 void OfflinePageAdded(OfflinePageModel* model, |
| 46 const OfflinePageItem& added_page) override; | 46 const OfflinePageItem& added_page) override; |
| 47 void OfflinePageDeleted(int64_t offline_id, | 47 void OfflinePageDeleted(int64_t offline_id, |
| 48 const ClientId& client_id) override; | 48 const ClientId& client_id) override; |
| 49 | 49 |
| 50 // RequestCoordinator::Observer implementation. | 50 // RequestCoordinator::Observer implementation. |
| 51 void OnAdded(const SavePageRequest& request) override; | 51 void OnAdded(const SavePageRequest& request) override; |
| 52 void OnCompleted(const SavePageRequest& request, | 52 void OnCompleted(const SavePageRequest& request, |
| 53 RequestNotifier::BackgroundSavePageResult status) override; | 53 RequestNotifier::BackgroundSavePageResult status) override; |
| 54 void OnChanged(const SavePageRequest& request) override; | 54 void OnChanged(const SavePageRequest& request) override; |
| 55 void OnNetworkProgress(const SavePageRequest& request, |
| 56 int64_t received_bytes) override; |
| 55 | 57 |
| 56 // OfflineEventLogger::Client implementation. | 58 // OfflineEventLogger::Client implementation. |
| 57 void CustomLog(const std::string& message) override; | 59 void CustomLog(const std::string& message) override; |
| 58 | 60 |
| 59 // Gets all pages in offline page model. | 61 // Gets all pages in offline page model. |
| 60 void GetAllPages(JNIEnv* env, | 62 void GetAllPages(JNIEnv* env, |
| 61 const base::android::JavaParamRef<jobject>& obj, | 63 const base::android::JavaParamRef<jobject>& obj, |
| 62 const base::android::JavaParamRef<jobject>& j_result_obj, | 64 const base::android::JavaParamRef<jobject>& j_result_obj, |
| 63 const base::android::JavaParamRef<jobject>& j_callback_obj); | 65 const base::android::JavaParamRef<jobject>& j_callback_obj); |
| 64 | 66 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Not owned. | 106 // Not owned. |
| 105 RequestCoordinator* request_coordinator_; | 107 RequestCoordinator* request_coordinator_; |
| 106 | 108 |
| 107 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge); | 109 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge); |
| 108 }; | 110 }; |
| 109 | 111 |
| 110 } // namespace android | 112 } // namespace android |
| 111 } // namespace offline_pages | 113 } // namespace offline_pages |
| 112 | 114 |
| 113 #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 |