| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 
| 7 | 7 | 
| 8 #include <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <memory> | 10 #include <memory> | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 154   bool CanShowInFolder() override; | 154   bool CanShowInFolder() override; | 
| 155   bool CanOpenDownload() override; | 155   bool CanOpenDownload() override; | 
| 156   bool ShouldOpenFileBasedOnExtension() override; | 156   bool ShouldOpenFileBasedOnExtension() override; | 
| 157   bool GetOpenWhenComplete() const override; | 157   bool GetOpenWhenComplete() const override; | 
| 158   bool GetAutoOpened() override; | 158   bool GetAutoOpened() override; | 
| 159   bool GetOpened() const override; | 159   bool GetOpened() const override; | 
| 160   BrowserContext* GetBrowserContext() const override; | 160   BrowserContext* GetBrowserContext() const override; | 
| 161   WebContents* GetWebContents() const override; | 161   WebContents* GetWebContents() const override; | 
| 162   void OnContentCheckCompleted(DownloadDangerType danger_type) override; | 162   void OnContentCheckCompleted(DownloadDangerType danger_type) override; | 
| 163   void SetOpenWhenComplete(bool open) override; | 163   void SetOpenWhenComplete(bool open) override; | 
| 164   void SetOpened(bool opened) override; |  | 
| 165   void SetDisplayName(const base::FilePath& name) override; | 164   void SetDisplayName(const base::FilePath& name) override; | 
| 166   std::string DebugString(bool verbose) const override; | 165   std::string DebugString(bool verbose) const override; | 
| 167 | 166 | 
| 168   // All remaining public interfaces virtual to allow for DownloadItemImpl | 167   // All remaining public interfaces virtual to allow for DownloadItemImpl | 
| 169   // mocks. | 168   // mocks. | 
| 170 | 169 | 
| 171   // Determines the resume mode for an interrupted download. Requires | 170   // Determines the resume mode for an interrupted download. Requires | 
| 172   // last_reason_ to be set, but doesn't require the download to be in | 171   // last_reason_ to be set, but doesn't require the download to be in | 
| 173   // INTERRUPTED state. | 172   // INTERRUPTED state. | 
| 174   virtual ResumeMode GetResumeMode() const; | 173   virtual ResumeMode GetResumeMode() const; | 
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 677   const net::NetLogWithSource net_log_; | 676   const net::NetLogWithSource net_log_; | 
| 678 | 677 | 
| 679   base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 678   base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 
| 680 | 679 | 
| 681   DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 680   DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 
| 682 }; | 681 }; | 
| 683 | 682 | 
| 684 }  // namespace content | 683 }  // namespace content | 
| 685 | 684 | 
| 686 #endif  // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 685 #endif  // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 
| OLD | NEW | 
|---|