| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void SelectPageForOnlineUrl( | 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>& j_online_url, | 72 const base::android::JavaParamRef<jstring>& j_online_url, |
| 73 int tab_id, | 73 int tab_id, |
| 74 const base::android::JavaParamRef<jobject>& j_callback_obj); | 74 const base::android::JavaParamRef<jobject>& j_callback_obj); |
| 75 | 75 |
| 76 void GetPageByOfflineUrl( | |
| 77 JNIEnv* env, | |
| 78 const base::android::JavaParamRef<jobject>& obj, | |
| 79 const base::android::JavaParamRef<jstring>& j_offline_url, | |
| 80 const base::android::JavaParamRef<jobject>& j_callback_obj); | |
| 81 | |
| 82 void SavePage( | 76 void SavePage( |
| 83 JNIEnv* env, | 77 JNIEnv* env, |
| 84 const base::android::JavaParamRef<jobject>& obj, | 78 const base::android::JavaParamRef<jobject>& obj, |
| 85 const base::android::JavaParamRef<jobject>& j_callback_obj, | 79 const base::android::JavaParamRef<jobject>& j_callback_obj, |
| 86 const base::android::JavaParamRef<jobject>& j_web_contents, | 80 const base::android::JavaParamRef<jobject>& j_web_contents, |
| 87 const base::android::JavaParamRef<jstring>& j_namespace, | 81 const base::android::JavaParamRef<jstring>& j_namespace, |
| 88 const base::android::JavaParamRef<jstring>& j_client_id); | 82 const base::android::JavaParamRef<jstring>& j_client_id); |
| 89 | 83 |
| 90 void SavePageLater(JNIEnv* env, | 84 void SavePageLater(JNIEnv* env, |
| 91 const base::android::JavaParamRef<jobject>& obj, | 85 const base::android::JavaParamRef<jobject>& obj, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); | 128 DISALLOW_COPY_AND_ASSIGN(OfflinePageBridge); |
| 135 }; | 129 }; |
| 136 | 130 |
| 137 bool RegisterOfflinePageBridge(JNIEnv* env); | 131 bool RegisterOfflinePageBridge(JNIEnv* env); |
| 138 | 132 |
| 139 } // namespace android | 133 } // namespace android |
| 140 } // namespace offline_pages | 134 } // namespace offline_pages |
| 141 | 135 |
| 142 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ | 136 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BRIDGE_H_ |
| 143 | 137 |
| OLD | NEW |