| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110   bool CanOpenDownload() override; | 110   bool CanOpenDownload() override; | 
| 111   bool ShouldOpenFileBasedOnExtension() override; | 111   bool ShouldOpenFileBasedOnExtension() override; | 
| 112   bool GetOpenWhenComplete() const override; | 112   bool GetOpenWhenComplete() const override; | 
| 113   bool GetAutoOpened() override; | 113   bool GetAutoOpened() override; | 
| 114   bool GetOpened() const override; | 114   bool GetOpened() const override; | 
| 115   content::BrowserContext* GetBrowserContext() const override; | 115   content::BrowserContext* GetBrowserContext() const override; | 
| 116   content::WebContents* GetWebContents() const override; | 116   content::WebContents* GetWebContents() const override; | 
| 117   void OnContentCheckCompleted( | 117   void OnContentCheckCompleted( | 
| 118       content::DownloadDangerType danger_type) override; | 118       content::DownloadDangerType danger_type) override; | 
| 119   void SetOpenWhenComplete(bool open) override; | 119   void SetOpenWhenComplete(bool open) override; | 
| 120   void SetOpened(bool opened) override; |  | 
| 121   void SetDisplayName(const base::FilePath& name) override; | 120   void SetDisplayName(const base::FilePath& name) override; | 
| 122   std::string DebugString(bool verbose) const override; | 121   std::string DebugString(bool verbose) const override; | 
| 123 | 122 | 
| 124  private: | 123  private: | 
| 125   base::ObserverList<Observer> observers_; | 124   base::ObserverList<Observer> observers_; | 
| 126   uint32_t id_; | 125   uint32_t id_; | 
| 127   GURL url_; | 126   GURL url_; | 
| 128   base::FilePath file_path_; | 127   base::FilePath file_path_; | 
| 129   bool is_file_externally_removed_; | 128   bool is_file_externally_removed_; | 
| 130   base::Time start_time_; | 129   base::Time start_time_; | 
| 131   base::Time end_time_; | 130   base::Time end_time_; | 
| 132   DownloadState download_state_; | 131   DownloadState download_state_; | 
| 133   std::string mime_type_; | 132   std::string mime_type_; | 
| 134   GURL original_url_; | 133   GURL original_url_; | 
| 135 | 134 | 
| 136   // The members below are to be returned by methods, which return by reference. | 135   // The members below are to be returned by methods, which return by reference. | 
| 137   std::string dummy_string; | 136   std::string dummy_string; | 
| 138   std::vector<GURL> dummy_url_vector; | 137   std::vector<GURL> dummy_url_vector; | 
| 139   GURL dummy_url; | 138   GURL dummy_url; | 
| 140   base::FilePath dummy_file_path; | 139   base::FilePath dummy_file_path; | 
| 141 | 140 | 
| 142   DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); | 141   DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); | 
| 143 }; | 142 }; | 
| 144 | 143 | 
| 145 }  // namespace test | 144 }  // namespace test | 
| 146 | 145 | 
| 147 #endif  // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 146 #endif  // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_ | 
| OLD | NEW | 
|---|