Chromium Code Reviews| 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 e66026285ac5954da1728c86a426dd0fa4717d71..e43e8b1572f204810523b1f24ee3e0ddba4a34fe 100644 |
| --- a/content/browser/download/download_item_impl.h |
| +++ b/content/browser/download/download_item_impl.h |
| @@ -148,12 +148,14 @@ class CONTENT_EXPORT DownloadItemImpl |
| virtual bool GetOpenWhenComplete() const OVERRIDE; |
| virtual bool GetAutoOpened() OVERRIDE; |
| virtual bool GetOpened() const OVERRIDE; |
| + virtual bool GetShownWhenComplete() const OVERRIDE; |
| virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
| virtual WebContents* GetWebContents() const OVERRIDE; |
| virtual void OnContentCheckCompleted(DownloadDangerType danger_type) OVERRIDE; |
| virtual void SetOpenWhenComplete(bool open) OVERRIDE; |
| virtual void SetIsTemporary(bool temporary) OVERRIDE; |
| virtual void SetOpened(bool opened) OVERRIDE; |
| + virtual void SetShownWhenComplete(bool shown) OVERRIDE; |
| virtual void SetDisplayName(const base::FilePath& name) OVERRIDE; |
| virtual std::string DebugString(bool verbose) const OVERRIDE; |
| @@ -538,6 +540,14 @@ class CONTENT_EXPORT DownloadItemImpl |
| // be treated as though the user opened it. |
| bool opened_; |
| + // Did the user show the item in shell after it was complete? The shelf uses |
| + // the value from this field to determine if it can autohide itself, so it |
| + // is possible to autohide when user interacted with completed download by |
| + // showing the file in shell, instead of opening. The shelf also sets this |
| + // field when user closes the shelf before the item has been 'shown in |
| + // shell'. |
| + bool shownWhenComplete_; |
|
asanka
2014/06/05 19:26:28
Nit: unix_hacker_style_
DukeXar
2014/06/06 15:07:14
Well, I have deleted it at all.
|
| + |
| // Did the delegate delay calling Complete on this download? |
| bool delegate_delayed_complete_; |