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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 DownloadState GetState() const override; | 58 DownloadState GetState() const override; |
59 | 59 |
60 void SetMimeType(const std::string& mime_type); | 60 void SetMimeType(const std::string& mime_type); |
61 std::string GetMimeType() const override; | 61 std::string GetMimeType() const override; |
62 | 62 |
63 void SetOriginalUrl(const GURL& url); | 63 void SetOriginalUrl(const GURL& url); |
64 const GURL& GetOriginalUrl() const override; | 64 const GURL& GetOriginalUrl() const override; |
65 | 65 |
66 // The methods below are not supported and are not expected to be called. | 66 // The methods below are not supported and are not expected to be called. |
67 void ValidateDangerousDownload() override; | 67 void ValidateDangerousDownload() override; |
68 void StealDangerousDownload(const AcquireFileCallback& callback) override; | 68 void StealDangerousDownload(bool delete_file_afterward, |
| 69 const AcquireFileCallback& callback) override; |
69 void Pause() override; | 70 void Pause() override; |
70 void Resume() override; | 71 void Resume() override; |
71 void Cancel(bool user_cancel) override; | 72 void Cancel(bool user_cancel) override; |
72 void Remove() override; | 73 void Remove() override; |
73 void OpenDownload() override; | 74 void OpenDownload() override; |
74 void ShowDownloadInShell() override; | 75 void ShowDownloadInShell() override; |
75 const std::string& GetGuid() const override; | 76 const std::string& GetGuid() const override; |
76 content::DownloadInterruptReason GetLastReason() const override; | 77 content::DownloadInterruptReason GetLastReason() const override; |
77 bool IsPaused() const override; | 78 bool IsPaused() const override; |
78 bool IsTemporary() const override; | 79 bool IsTemporary() const override; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 std::vector<GURL> dummy_url_vector; | 139 std::vector<GURL> dummy_url_vector; |
139 GURL dummy_url; | 140 GURL dummy_url; |
140 base::FilePath dummy_file_path; | 141 base::FilePath dummy_file_path; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); | 143 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace test | 146 } // namespace test |
146 | 147 |
147 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 148 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ |
OLD | NEW |