Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: chrome/browser/android/download/download_manager_service.h

Issue 1673183003: add pause button for resumable in-progress downloads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding assert Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/download/download_manager_service.h
diff --git a/chrome/browser/android/download/download_manager_service.h b/chrome/browser/android/download/download_manager_service.h
index 66fb490e3156b64e24f073a9277b4bcabee2884a..f1a5f9e2a2b944a52d75eddaa25470e888cbc951 100644
--- a/chrome/browser/android/download/download_manager_service.h
+++ b/chrome/browser/android/download/download_manager_service.h
@@ -40,6 +40,10 @@ class DownloadManagerService : public content::DownloadManager::Observer {
// If the DownloadItem is not yet created, retry after a while.
void CancelDownload(JNIEnv* env, jobject obj, uint32_t download_id);
+ // Called to pause a download item that has ID equal to |download_id|.
+ // If the DownloadItem is not yet created, do nothing as it is already paused.
+ void PauseDownload(JNIEnv* env, jobject obj, uint32_t download_id);
+
// content::DownloadManager::Observer methods.
void ManagerGoingDown(content::DownloadManager* manager) override;

Powered by Google App Engine
This is Rietveld 408576698