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

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

Issue 2160063002: Allow user to pause/resume incognito downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix clang warning Created 4 years, 5 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 8fc59b5a4d1bf842873836fc21b6bc33895e0b4d..1887d08c46b863f520dc6edc7e0a005e5128bf4d 100644
--- a/chrome/browser/android/download/download_manager_service.h
+++ b/chrome/browser/android/download/download_manager_service.h
@@ -41,7 +41,8 @@ class DownloadManagerService : public DownloadHistory::Observer {
// |jdownload_guid|..
void ResumeDownload(JNIEnv* env,
jobject obj,
- const JavaParamRef<jstring>& jdownload_guid);
+ const JavaParamRef<jstring>& jdownload_guid,
+ bool is_off_the_record);
// Called to cancel a download item that has GUID equal to |jdownload_guid|.
// If the DownloadItem is not yet created, retry after a while.
@@ -55,7 +56,8 @@ class DownloadManagerService : public DownloadHistory::Observer {
// If the DownloadItem is not yet created, do nothing as it is already paused.
void PauseDownload(JNIEnv* env,
jobject obj,
- const JavaParamRef<jstring>& jdownload_guid);
+ const JavaParamRef<jstring>& jdownload_guid,
+ bool is_off_the_record);
// Called to request that the DownloadManagerService return data about all
// downloads in the user's history.
@@ -73,14 +75,16 @@ class DownloadManagerService : public DownloadHistory::Observer {
friend class DownloadManagerServiceTest;
// Helper function to start the download resumption.
- void ResumeDownloadInternal(const std::string& download_guid);
+ void ResumeDownloadInternal(const std::string& download_guid,
+ bool is_off_the_record);
// Helper function to cancel a download.
void CancelDownloadInternal(const std::string& download_guid,
bool is_off_the_record);
// Helper function to pause a download.
- void PauseDownloadInternal(const std::string& download_guid);
+ void PauseDownloadInternal(const std::string& download_guid,
+ bool is_off_the_record);
// Helper function to send info about all downloads to the Java-side.
void GetAllDownloadsInternal();

Powered by Google App Engine
This is Rietveld 408576698