| 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> GetPageByOnlineURL( | 69 base::android::ScopedJavaLocalRef<jobject> GetBestPageForOnlineURL( |
| 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>& online_url); |
| 73 | 73 |
| 74 base::android::ScopedJavaLocalRef<jobject> GetPageByOfflineUrl( | 74 base::android::ScopedJavaLocalRef<jobject> GetPageByOfflineUrl( |
| 75 JNIEnv* env, | 75 JNIEnv* env, |
| 76 const base::android::JavaParamRef<jobject>& obj, | 76 const base::android::JavaParamRef<jobject>& obj, |
| 77 const base::android::JavaParamRef<jstring>& j_offline_url); | 77 const base::android::JavaParamRef<jstring>& j_offline_url); |
| 78 | 78 |
| 79 void SavePage( | 79 void SavePage( |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); | 129 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 bool RegisterOfflinePageBridge(JNIEnv* env); | 132 bool RegisterOfflinePageBridge(JNIEnv* env); |
| 133 | 133 |
| 134 } // namespace android | 134 } // namespace android |
| 135 } // namespace offline_pages | 135 } // namespace offline_pages |
| 136 | 136 |
| 137 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | 137 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ |
| 138 | 138 |
| OLD | NEW |