| 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 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |