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

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser and unit tests. Renamed 'UserActed' to 'OpenedOrShown'. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool CanShowInFolder() override; 154 bool CanShowInFolder() override;
155 bool CanOpenDownload() override; 155 bool CanOpenDownload() override;
156 bool ShouldOpenFileBasedOnExtension() override; 156 bool ShouldOpenFileBasedOnExtension() override;
157 bool GetOpenWhenComplete() const override; 157 bool GetOpenWhenComplete() const override;
158 bool GetAutoOpened() override; 158 bool GetAutoOpened() override;
159 bool GetOpened() const override; 159 bool GetOpened() const override;
160 BrowserContext* GetBrowserContext() const override; 160 BrowserContext* GetBrowserContext() const override;
161 WebContents* GetWebContents() const override; 161 WebContents* GetWebContents() const override;
162 void OnContentCheckCompleted(DownloadDangerType danger_type) override; 162 void OnContentCheckCompleted(DownloadDangerType danger_type) override;
163 void SetOpenWhenComplete(bool open) override; 163 void SetOpenWhenComplete(bool open) override;
164 void SetOpened(bool opened) override;
165 void SetDisplayName(const base::FilePath& name) override; 164 void SetDisplayName(const base::FilePath& name) override;
166 std::string DebugString(bool verbose) const override; 165 std::string DebugString(bool verbose) const override;
167 166
168 // All remaining public interfaces virtual to allow for DownloadItemImpl 167 // All remaining public interfaces virtual to allow for DownloadItemImpl
169 // mocks. 168 // mocks.
170 169
171 // Determines the resume mode for an interrupted download. Requires 170 // Determines the resume mode for an interrupted download. Requires
172 // last_reason_ to be set, but doesn't require the download to be in 171 // last_reason_ to be set, but doesn't require the download to be in
173 // INTERRUPTED state. 172 // INTERRUPTED state.
174 virtual ResumeMode GetResumeMode() const; 173 virtual ResumeMode GetResumeMode() const;
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 const net::NetLogWithSource net_log_; 676 const net::NetLogWithSource net_log_;
678 677
679 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 678 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
680 679
681 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 680 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
682 }; 681 };
683 682
684 } // namespace content 683 } // namespace content
685 684
686 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 685 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698