| 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_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI
DGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI
DGE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI
DGE_H_ | 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_BRI
DGE_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 base::android::ScopedJavaLocalRef<jobject> GetItemByGuid( | 46 base::android::ScopedJavaLocalRef<jobject> GetItemByGuid( |
| 47 JNIEnv* env, | 47 JNIEnv* env, |
| 48 const base::android::JavaParamRef<jobject>& obj, | 48 const base::android::JavaParamRef<jobject>& obj, |
| 49 const base::android::JavaParamRef<jstring>& j_guid); | 49 const base::android::JavaParamRef<jstring>& j_guid); |
| 50 | 50 |
| 51 void DeleteItemByGuid( | 51 void DeleteItemByGuid( |
| 52 JNIEnv* env, | 52 JNIEnv* env, |
| 53 const base::android::JavaParamRef<jobject>& obj, | 53 const base::android::JavaParamRef<jobject>& obj, |
| 54 const base::android::JavaParamRef<jstring>& j_guid); | 54 const base::android::JavaParamRef<jstring>& j_guid); |
| 55 | 55 |
| 56 base::android::ScopedJavaLocalRef<jstring> GetOfflineUrlByGuid( | |
| 57 JNIEnv* env, | |
| 58 const base::android::JavaParamRef<jobject>& obj, | |
| 59 const base::android::JavaParamRef<jstring>& j_guid); | |
| 60 | |
| 61 void StartDownload( | 56 void StartDownload( |
| 62 JNIEnv* env, | 57 JNIEnv* env, |
| 63 const base::android::JavaParamRef<jobject>& obj, | 58 const base::android::JavaParamRef<jobject>& obj, |
| 64 const base::android::JavaParamRef<jobject>& j_tab); | 59 const base::android::JavaParamRef<jobject>& j_tab); |
| 65 | 60 |
| 66 void CancelDownload(JNIEnv* env, | 61 void CancelDownload(JNIEnv* env, |
| 67 const base::android::JavaParamRef<jobject>& obj, | 62 const base::android::JavaParamRef<jobject>& obj, |
| 68 const base::android::JavaParamRef<jstring>& j_guid); | 63 const base::android::JavaParamRef<jstring>& j_guid); |
| 69 | 64 |
| 70 void PauseDownload(JNIEnv* env, | 65 void PauseDownload(JNIEnv* env, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 92 // Not owned. | 87 // Not owned. |
| 93 content::BrowserContext* browser_context_; | 88 content::BrowserContext* browser_context_; |
| 94 | 89 |
| 95 DISALLOW_COPY_AND_ASSIGN(OfflinePageDownloadBridge); | 90 DISALLOW_COPY_AND_ASSIGN(OfflinePageDownloadBridge); |
| 96 }; | 91 }; |
| 97 | 92 |
| 98 } // namespace android | 93 } // namespace android |
| 99 } // namespace offline_pages | 94 } // namespace offline_pages |
| 100 | 95 |
| 101 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_
BRIDGE_H_ | 96 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_
BRIDGE_H_ |
| OLD | NEW |