| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 const std::string& GetHash() const override; | 100 const std::string& GetHash() const override; |
| 101 void DeleteFile(const base::Callback<void(bool)>& callback) override; | 101 void DeleteFile(const base::Callback<void(bool)>& callback) override; |
| 102 bool IsDangerous() const override; | 102 bool IsDangerous() const override; |
| 103 content::DownloadDangerType GetDangerType() const override; | 103 content::DownloadDangerType GetDangerType() const override; |
| 104 bool TimeRemaining(base::TimeDelta* remaining) const override; | 104 bool TimeRemaining(base::TimeDelta* remaining) const override; |
| 105 int64_t CurrentSpeed() const override; | 105 int64_t CurrentSpeed() const override; |
| 106 int PercentComplete() const override; | 106 int PercentComplete() const override; |
| 107 bool AllDataSaved() const override; | 107 bool AllDataSaved() const override; |
| 108 int64_t GetTotalBytes() const override; | 108 int64_t GetTotalBytes() const override; |
| 109 int64_t GetReceivedBytes() const override; | 109 int64_t GetReceivedBytes() const override; |
| 110 const std::vector<DownloadItem::ReceivedSlice>& GetReceivedSlices() |
| 111 const override; |
| 110 bool CanShowInFolder() override; | 112 bool CanShowInFolder() override; |
| 111 bool CanOpenDownload() override; | 113 bool CanOpenDownload() override; |
| 112 bool ShouldOpenFileBasedOnExtension() override; | 114 bool ShouldOpenFileBasedOnExtension() override; |
| 113 bool GetOpenWhenComplete() const override; | 115 bool GetOpenWhenComplete() const override; |
| 114 bool GetAutoOpened() override; | 116 bool GetAutoOpened() override; |
| 115 bool GetOpened() const override; | 117 bool GetOpened() const override; |
| 116 content::BrowserContext* GetBrowserContext() const override; | 118 content::BrowserContext* GetBrowserContext() const override; |
| 117 content::WebContents* GetWebContents() const override; | 119 content::WebContents* GetWebContents() const override; |
| 118 void OnContentCheckCompleted( | 120 void OnContentCheckCompleted( |
| 119 content::DownloadDangerType danger_type) override; | 121 content::DownloadDangerType danger_type) override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 139 std::vector<GURL> dummy_url_vector; | 141 std::vector<GURL> dummy_url_vector; |
| 140 GURL dummy_url; | 142 GURL dummy_url; |
| 141 base::FilePath dummy_file_path; | 143 base::FilePath dummy_file_path; |
| 142 | 144 |
| 143 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); | 145 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 } // namespace test | 148 } // namespace test |
| 147 | 149 |
| 148 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 150 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ |
| OLD | NEW |