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

Side by Side Diff: chrome/browser/ntp_snippets/fake_download_item.h

Issue 2439533002: Download Feedback Service should upload all eligible downloads (Closed)
Patch Set: make try bots happy 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool GetFileExternallyRemoved() const override; 49 bool GetFileExternallyRemoved() const override;
50 50
51 void SetEndTime(const base::Time& end_time); 51 void SetEndTime(const base::Time& end_time);
52 base::Time GetEndTime() const override; 52 base::Time GetEndTime() const override;
53 53
54 void SetState(const DownloadState& state); 54 void SetState(const DownloadState& state);
55 DownloadState GetState() const override; 55 DownloadState GetState() const override;
56 56
57 // The methods below are not supported and are not expected to be called. 57 // The methods below are not supported and are not expected to be called.
58 void ValidateDangerousDownload() override; 58 void ValidateDangerousDownload() override;
59 void StealDangerousDownload(const AcquireFileCallback& callback) override; 59 void StealDangerousDownload(bool delete_file_afterward,
60 const AcquireFileCallback& callback) override;
60 void Pause() override; 61 void Pause() override;
61 void Resume() override; 62 void Resume() override;
62 void Cancel(bool user_cancel) override; 63 void Cancel(bool user_cancel) override;
63 void Remove() override; 64 void Remove() override;
64 void OpenDownload() override; 65 void OpenDownload() override;
65 void ShowDownloadInShell() override; 66 void ShowDownloadInShell() override;
66 const std::string& GetGuid() const override; 67 const std::string& GetGuid() const override;
67 content::DownloadInterruptReason GetLastReason() const override; 68 content::DownloadInterruptReason GetLastReason() const override;
68 bool IsPaused() const override; 69 bool IsPaused() const override;
69 bool IsTemporary() const override; 70 bool IsTemporary() const override;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 std::vector<GURL> dummy_url_vector; 130 std::vector<GURL> dummy_url_vector;
130 GURL dummy_url; 131 GURL dummy_url;
131 base::FilePath dummy_file_path; 132 base::FilePath dummy_file_path;
132 133
133 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); 134 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem);
134 }; 135 };
135 136
136 } // namespace test 137 } // namespace test
137 138
138 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ 139 #endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698