| 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_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ | 6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void ResumeDownload(JNIEnv* env, | 53 void ResumeDownload(JNIEnv* env, |
| 54 jobject obj, | 54 jobject obj, |
| 55 const JavaParamRef<jstring>& jdownload_guid, | 55 const JavaParamRef<jstring>& jdownload_guid, |
| 56 bool is_off_the_record); | 56 bool is_off_the_record); |
| 57 | 57 |
| 58 // Called to cancel a download item that has GUID equal to |jdownload_guid|. | 58 // Called to cancel a download item that has GUID equal to |jdownload_guid|. |
| 59 // If the DownloadItem is not yet created, retry after a while. | 59 // If the DownloadItem is not yet created, retry after a while. |
| 60 void CancelDownload(JNIEnv* env, | 60 void CancelDownload(JNIEnv* env, |
| 61 jobject obj, | 61 jobject obj, |
| 62 const JavaParamRef<jstring>& jdownload_guid, | 62 const JavaParamRef<jstring>& jdownload_guid, |
| 63 bool is_off_the_record, | 63 bool is_off_the_record); |
| 64 bool is_notification_dismissed); | |
| 65 | 64 |
| 66 // Called to pause a download item that has GUID equal to |jdownload_guid|. | 65 // Called to pause a download item that has GUID equal to |jdownload_guid|. |
| 67 // If the DownloadItem is not yet created, do nothing as it is already paused. | 66 // If the DownloadItem is not yet created, do nothing as it is already paused. |
| 68 void PauseDownload(JNIEnv* env, | 67 void PauseDownload(JNIEnv* env, |
| 69 jobject obj, | 68 jobject obj, |
| 70 const JavaParamRef<jstring>& jdownload_guid, | 69 const JavaParamRef<jstring>& jdownload_guid, |
| 71 bool is_off_the_record); | 70 bool is_off_the_record); |
| 72 | 71 |
| 73 // Called to remove a download item that has GUID equal to |jdownload_guid|. | 72 // Called to remove a download item that has GUID equal to |jdownload_guid|. |
| 74 void RemoveDownload(JNIEnv* env, | 73 void RemoveDownload(JNIEnv* env, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 175 |
| 177 ResumeCallback resume_callback_for_testing_; | 176 ResumeCallback resume_callback_for_testing_; |
| 178 | 177 |
| 179 std::unique_ptr<AllDownloadItemNotifier> original_notifier_; | 178 std::unique_ptr<AllDownloadItemNotifier> original_notifier_; |
| 180 std::unique_ptr<AllDownloadItemNotifier> off_the_record_notifier_; | 179 std::unique_ptr<AllDownloadItemNotifier> off_the_record_notifier_; |
| 181 | 180 |
| 182 DISALLOW_COPY_AND_ASSIGN(DownloadManagerService); | 181 DISALLOW_COPY_AND_ASSIGN(DownloadManagerService); |
| 183 }; | 182 }; |
| 184 | 183 |
| 185 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ | 184 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ |
| OLD | NEW |