summaryrefslogtreecommitdiffstats
path: root/src/core/download_manager_delegate_qt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/download_manager_delegate_qt.h')
-rw-r--r--src/core/download_manager_delegate_qt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/download_manager_delegate_qt.h b/src/core/download_manager_delegate_qt.h
index dd8ebf6c4..df43211ed 100644
--- a/src/core/download_manager_delegate_qt.h
+++ b/src/core/download_manager_delegate_qt.h
@@ -86,6 +86,8 @@ public:
void pauseDownload(quint32 downloadId);
void resumeDownload(quint32 downloadId);
+ void markNextDownloadAsUserRequested() { m_nextDownloadIsUserRequested = true; }
+
// Inherited from content::DownloadItem::Observer
void OnDownloadUpdated(content::DownloadItem *download) override;
void OnDownloadDestroyed(content::DownloadItem *download) override;
@@ -97,6 +99,7 @@ private:
uint64_t m_currentId;
base::WeakPtrFactory<DownloadManagerDelegateQt> m_weakPtrFactory;
+ bool m_nextDownloadIsUserRequested;
friend class DownloadManagerDelegateInstance;
DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegateQt);