| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_OFFLINE_PAGE_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_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" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 JNIEnv* env, | 59 JNIEnv* env, |
| 60 const base::android::JavaParamRef<jobject>& obj, | 60 const base::android::JavaParamRef<jobject>& obj, |
| 61 const base::android::JavaParamRef<jstring>& j_namespace, | 61 const base::android::JavaParamRef<jstring>& j_namespace, |
| 62 const base::android::JavaParamRef<jstring>& j_client_id); | 62 const base::android::JavaParamRef<jstring>& j_client_id); |
| 63 | 63 |
| 64 base::android::ScopedJavaLocalRef<jobject> GetPageByOfflineId( | 64 base::android::ScopedJavaLocalRef<jobject> GetPageByOfflineId( |
| 65 JNIEnv* env, | 65 JNIEnv* env, |
| 66 const base::android::JavaParamRef<jobject>& obj, | 66 const base::android::JavaParamRef<jobject>& obj, |
| 67 jlong offline_id); | 67 jlong offline_id); |
| 68 | 68 |
| 69 base::android::ScopedJavaLocalRef<jobject> GetBestPageForOnlineURL( | 69 void SelectPageForOnlineUrl( |
| 70 JNIEnv* env, | 70 JNIEnv* env, |
| 71 const base::android::JavaParamRef<jobject>& obj, | 71 const base::android::JavaParamRef<jobject>& obj, |
| 72 const base::android::JavaParamRef<jstring>& online_url); | 72 const base::android::JavaParamRef<jstring>& j_online_url, |
| 73 int tab_id, |
| 74 const base::android::JavaParamRef<jobject>& j_callback_obj); |
| 73 | 75 |
| 74 void GetPageByOfflineUrl( | 76 void GetPageByOfflineUrl( |
| 75 JNIEnv* env, | 77 JNIEnv* env, |
| 76 const base::android::JavaParamRef<jobject>& obj, | 78 const base::android::JavaParamRef<jobject>& obj, |
| 77 const base::android::JavaParamRef<jstring>& j_offline_url, | 79 const base::android::JavaParamRef<jstring>& j_offline_url, |
| 78 const base::android::JavaParamRef<jobject>& j_callback_obj); | 80 const base::android::JavaParamRef<jobject>& j_callback_obj); |
| 79 | 81 |
| 80 void SavePage( | 82 void SavePage( |
| 81 JNIEnv* env, | 83 JNIEnv* env, |
| 82 const base::android::JavaParamRef<jobject>& obj, | 84 const base::android::JavaParamRef<jobject>& obj, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); | 122 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 bool RegisterOfflinePageBridge(JNIEnv* env); | 125 bool RegisterOfflinePageBridge(JNIEnv* env); |
| 124 | 126 |
| 125 } // namespace android | 127 } // namespace android |
| 126 } // namespace offline_pages | 128 } // namespace offline_pages |
| 127 | 129 |
| 128 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | 130 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ |
| 129 | 131 |
| OLD | NEW |