| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const base::android::JavaParamRef<jobject>& obj, | 71 const base::android::JavaParamRef<jobject>& obj, |
| 72 jlong offline_id); | 72 jlong offline_id); |
| 73 | 73 |
| 74 void SelectPageForOnlineUrl( | 74 void SelectPageForOnlineUrl( |
| 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_online_url, | 77 const base::android::JavaParamRef<jstring>& j_online_url, |
| 78 int tab_id, | 78 int tab_id, |
| 79 const base::android::JavaParamRef<jobject>& j_callback_obj); | 79 const base::android::JavaParamRef<jobject>& j_callback_obj); |
| 80 | 80 |
| 81 void GetPageByOfflineUrl( | |
| 82 JNIEnv* env, | |
| 83 const base::android::JavaParamRef<jobject>& obj, | |
| 84 const base::android::JavaParamRef<jstring>& j_offline_url, | |
| 85 const base::android::JavaParamRef<jobject>& j_callback_obj); | |
| 86 | |
| 87 void SavePage( | 81 void SavePage( |
| 88 JNIEnv* env, | 82 JNIEnv* env, |
| 89 const base::android::JavaParamRef<jobject>& obj, | 83 const base::android::JavaParamRef<jobject>& obj, |
| 90 const base::android::JavaParamRef<jobject>& j_callback_obj, | 84 const base::android::JavaParamRef<jobject>& j_callback_obj, |
| 91 const base::android::JavaParamRef<jobject>& j_web_contents, | 85 const base::android::JavaParamRef<jobject>& j_web_contents, |
| 92 const base::android::JavaParamRef<jstring>& j_namespace, | 86 const base::android::JavaParamRef<jstring>& j_namespace, |
| 93 const base::android::JavaParamRef<jstring>& j_client_id); | 87 const base::android::JavaParamRef<jstring>& j_client_id); |
| 94 | 88 |
| 95 void SavePageLater(JNIEnv* env, | 89 void SavePageLater(JNIEnv* env, |
| 96 const base::android::JavaParamRef<jobject>& obj, | 90 const base::android::JavaParamRef<jobject>& obj, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); | 132 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); |
| 139 }; | 133 }; |
| 140 | 134 |
| 141 bool RegisterOfflinePageBridge(JNIEnv* env); | 135 bool RegisterOfflinePageBridge(JNIEnv* env); |
| 142 | 136 |
| 143 } // namespace android | 137 } // namespace android |
| 144 } // namespace offline_pages | 138 } // namespace offline_pages |
| 145 | 139 |
| 146 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | 140 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ |
| 147 | 141 |
| OLD | NEW |