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

Unified Diff: content/public/browser/download_item.h

Issue 11711003: Remove the DownloadItem::TogglePause() interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r175145. Created 7 years, 12 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: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 9eaf629612e7ca77f2f89701deba996ac6da7bd2..2d6922b4388c32e4a705c3991fa7cb9c084d4444 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -119,8 +119,13 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Called when the user has validated the download of a dangerous file.
virtual void DangerousDownloadValidated() = 0;
- // Allow the user to temporarily pause a download or resume a paused download.
- virtual void TogglePause() = 0;
+ // Pause a download. Will have no effect if the download is already
+ // paused.
+ virtual void Pause() = 0;
+
+ // Resume a download. Will have no effect if the download is not
+ // paused.
+ virtual void Resume() = 0;
// Cancel the download operation. We need to distinguish between cancels at
// exit (DownloadManager destructor) from user interface initiated cancels
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698