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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual int64 GetTotalBytes() const OVERRIDE; | 114 virtual int64 GetTotalBytes() const OVERRIDE; |
115 virtual int64 GetReceivedBytes() const OVERRIDE; | 115 virtual int64 GetReceivedBytes() const OVERRIDE; |
116 virtual base::Time GetStartTime() const OVERRIDE; | 116 virtual base::Time GetStartTime() const OVERRIDE; |
117 virtual base::Time GetEndTime() const OVERRIDE; | 117 virtual base::Time GetEndTime() const OVERRIDE; |
118 virtual bool CanShowInFolder() OVERRIDE; | 118 virtual bool CanShowInFolder() OVERRIDE; |
119 virtual bool CanOpenDownload() OVERRIDE; | 119 virtual bool CanOpenDownload() OVERRIDE; |
120 virtual bool ShouldOpenFileBasedOnExtension() OVERRIDE; | 120 virtual bool ShouldOpenFileBasedOnExtension() OVERRIDE; |
121 virtual bool GetOpenWhenComplete() const OVERRIDE; | 121 virtual bool GetOpenWhenComplete() const OVERRIDE; |
122 virtual bool GetAutoOpened() OVERRIDE; | 122 virtual bool GetAutoOpened() OVERRIDE; |
123 virtual bool GetOpened() const OVERRIDE; | 123 virtual bool GetOpened() const OVERRIDE; |
124 virtual bool MatchesQuery(const string16& query) const OVERRIDE; | |
125 virtual content::DownloadPersistentStoreInfo | 124 virtual content::DownloadPersistentStoreInfo |
126 GetPersistentStoreInfo() const OVERRIDE; | 125 GetPersistentStoreInfo() const OVERRIDE; |
127 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 126 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
128 virtual content::WebContents* GetWebContents() const OVERRIDE; | 127 virtual content::WebContents* GetWebContents() const OVERRIDE; |
129 virtual void DelayedDownloadOpened(bool auto_opened) OVERRIDE; | 128 virtual void DelayedDownloadOpened(bool auto_opened) OVERRIDE; |
130 virtual void OnContentCheckCompleted( | 129 virtual void OnContentCheckCompleted( |
131 content::DownloadDangerType danger_type) OVERRIDE; | 130 content::DownloadDangerType danger_type) OVERRIDE; |
132 virtual void SetOpenWhenComplete(bool open) OVERRIDE; | 131 virtual void SetOpenWhenComplete(bool open) OVERRIDE; |
133 virtual void SetIsTemporary(bool temporary) OVERRIDE; | 132 virtual void SetIsTemporary(bool temporary) OVERRIDE; |
134 virtual void SetOpened(bool opened) OVERRIDE; | 133 virtual void SetOpened(bool opened) OVERRIDE; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 413 |
415 // Net log to use for this download. | 414 // Net log to use for this download. |
416 const net::BoundNetLog bound_net_log_; | 415 const net::BoundNetLog bound_net_log_; |
417 | 416 |
418 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 417 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
419 | 418 |
420 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 419 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
421 }; | 420 }; |
422 | 421 |
423 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 422 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |