| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ |
| 6 #define CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 6 #define CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int64_t GetReceivedBytes() const override; | 109 int64_t GetReceivedBytes() const override; |
| 110 const std::vector<DownloadItem::ReceivedSlice>& GetReceivedSlices() | 110 const std::vector<DownloadItem::ReceivedSlice>& GetReceivedSlices() |
| 111 const override; | 111 const override; |
| 112 bool CanShowInFolder() override; | 112 bool CanShowInFolder() override; |
| 113 bool CanOpenDownload() override; | 113 bool CanOpenDownload() override; |
| 114 bool ShouldOpenFileBasedOnExtension() override; | 114 bool ShouldOpenFileBasedOnExtension() override; |
| 115 bool GetOpenWhenComplete() const override; | 115 bool GetOpenWhenComplete() const override; |
| 116 bool GetAutoOpened() override; | 116 bool GetAutoOpened() override; |
| 117 bool GetOpened() const override; | 117 bool GetOpened() const override; |
| 118 base::Time GetLastAccessTime() const override; | 118 base::Time GetLastAccessTime() const override; |
| 119 bool IsVisible() const override; |
| 119 content::BrowserContext* GetBrowserContext() const override; | 120 content::BrowserContext* GetBrowserContext() const override; |
| 120 content::WebContents* GetWebContents() const override; | 121 content::WebContents* GetWebContents() const override; |
| 121 void OnContentCheckCompleted( | 122 void OnContentCheckCompleted( |
| 122 content::DownloadDangerType danger_type) override; | 123 content::DownloadDangerType danger_type) override; |
| 123 void SetOpenWhenComplete(bool open) override; | 124 void SetOpenWhenComplete(bool open) override; |
| 124 void SetOpened(bool opened) override; | 125 void SetOpened(bool opened) override; |
| 125 void SetLastAccessTime(const base::Time& time) override; | 126 void SetLastAccessTime(const base::Time& time) override; |
| 126 void SetDisplayName(const base::FilePath& name) override; | 127 void SetDisplayName(const base::FilePath& name) override; |
| 127 std::string DebugString(bool verbose) const override; | 128 std::string DebugString(bool verbose) const override; |
| 128 | 129 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 143 std::vector<GURL> dummy_url_vector; | 144 std::vector<GURL> dummy_url_vector; |
| 144 GURL dummy_url; | 145 GURL dummy_url; |
| 145 base::FilePath dummy_file_path; | 146 base::FilePath dummy_file_path; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); | 148 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace test | 151 } // namespace test |
| 151 | 152 |
| 152 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 153 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ |
| OLD | NEW |