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

Side by Side Diff: content/public/test/fake_download_item.h

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 8 months 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
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_ 5 #ifndef CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
6 #define CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_ 6 #define CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int64_t GetReceivedBytes() const override; 113 int64_t GetReceivedBytes() const override;
114 const std::vector<DownloadItem::ReceivedSlice>& GetReceivedSlices() 114 const std::vector<DownloadItem::ReceivedSlice>& GetReceivedSlices()
115 const override; 115 const override;
116 bool CanShowInFolder() override; 116 bool CanShowInFolder() override;
117 bool CanOpenDownload() override; 117 bool CanOpenDownload() override;
118 bool ShouldOpenFileBasedOnExtension() override; 118 bool ShouldOpenFileBasedOnExtension() override;
119 bool GetOpenWhenComplete() const override; 119 bool GetOpenWhenComplete() const override;
120 bool GetAutoOpened() override; 120 bool GetAutoOpened() override;
121 bool GetOpened() const override; 121 bool GetOpened() const override;
122 base::Time GetLastAccessTime() const override; 122 base::Time GetLastAccessTime() const override;
123 bool IsTransient() const override;
123 BrowserContext* GetBrowserContext() const override; 124 BrowserContext* GetBrowserContext() const override;
124 WebContents* GetWebContents() const override; 125 WebContents* GetWebContents() const override;
125 void OnContentCheckCompleted(DownloadDangerType danger_type) override; 126 void OnContentCheckCompleted(DownloadDangerType danger_type) override;
126 void SetOpenWhenComplete(bool open) override; 127 void SetOpenWhenComplete(bool open) override;
127 void SetOpened(bool opened) override; 128 void SetOpened(bool opened) override;
128 void SetLastAccessTime(base::Time time) override; 129 void SetLastAccessTime(base::Time time) override;
129 void SetDisplayName(const base::FilePath& name) override; 130 void SetDisplayName(const base::FilePath& name) override;
130 std::string DebugString(bool verbose) const override; 131 std::string DebugString(bool verbose) const override;
131 132
132 private: 133 private:
(...skipping 18 matching lines...) Expand all
151 std::vector<GURL> dummy_url_vector; 152 std::vector<GURL> dummy_url_vector;
152 GURL dummy_url; 153 GURL dummy_url;
153 base::FilePath dummy_file_path; 154 base::FilePath dummy_file_path;
154 155
155 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); 156 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem);
156 }; 157 };
157 158
158 } // namespace content 159 } // namespace content
159 160
160 #endif // CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_ 161 #endif // CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698