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

Unified Diff: content/browser/download/download_item_impl.h

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 2 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/browser/download/download_item_impl.h
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
index 93293cb2bb6f8758d5e22e8c6c1a7d1a8d96cfb0..b67605b6dbbd7a24ba5872b8511b5494385a785a 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -125,6 +125,8 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
GetPersistentStoreInfo() const OVERRIDE;
virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
virtual content::WebContents* GetWebContents() const OVERRIDE;
+ virtual void SetShouldShowInDownloadsUI(bool should_show) OVERRIDE;
+ virtual bool ShouldShowInDownloadsUI() const OVERRIDE;
virtual void DelayedDownloadOpened(bool auto_opened) OVERRIDE;
virtual void OnContentCheckCompleted(
content::DownloadDangerType danger_type) OVERRIDE;
@@ -451,6 +453,9 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
// Net log to use for this download.
const net::BoundNetLog bound_net_log_;
+ // Controls whether the download should be shown in the download UI.
+ bool should_show_in_downloads_ui_;
+
base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);

Powered by Google App Engine
This is Rietveld 408576698