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

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 11673003: UI changes associated with downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged from DownloadsResumption; includes CanResumeDownload, which was nuked in the original CL. Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual void Cancel(bool user_cancel) OVERRIDE; 90 virtual void Cancel(bool user_cancel) OVERRIDE;
91 virtual void Delete(DeleteReason reason) OVERRIDE; 91 virtual void Delete(DeleteReason reason) OVERRIDE;
92 virtual void Remove() OVERRIDE; 92 virtual void Remove() OVERRIDE;
93 virtual void OpenDownload() OVERRIDE; 93 virtual void OpenDownload() OVERRIDE;
94 virtual void ShowDownloadInShell() OVERRIDE; 94 virtual void ShowDownloadInShell() OVERRIDE;
95 virtual int32 GetId() const OVERRIDE; 95 virtual int32 GetId() const OVERRIDE;
96 virtual DownloadId GetGlobalId() const OVERRIDE; 96 virtual DownloadId GetGlobalId() const OVERRIDE;
97 virtual DownloadState GetState() const OVERRIDE; 97 virtual DownloadState GetState() const OVERRIDE;
98 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; 98 virtual DownloadInterruptReason GetLastReason() const OVERRIDE;
99 virtual bool IsPaused() const OVERRIDE; 99 virtual bool IsPaused() const OVERRIDE;
100 virtual bool CanResumeInterrupted() const OVERRIDE;
100 virtual bool IsTemporary() const OVERRIDE; 101 virtual bool IsTemporary() const OVERRIDE;
101 virtual bool IsPartialDownload() const OVERRIDE; 102 virtual bool IsPartialDownload() const OVERRIDE;
102 virtual bool IsInProgress() const OVERRIDE; 103 virtual bool IsInProgress() const OVERRIDE;
103 virtual bool IsCancelled() const OVERRIDE; 104 virtual bool IsCancelled() const OVERRIDE;
104 virtual bool IsInterrupted() const OVERRIDE; 105 virtual bool IsInterrupted() const OVERRIDE;
105 virtual bool IsComplete() const OVERRIDE; 106 virtual bool IsComplete() const OVERRIDE;
106 virtual const GURL& GetURL() const OVERRIDE; 107 virtual const GURL& GetURL() const OVERRIDE;
107 virtual const std::vector<GURL>& GetUrlChain() const OVERRIDE; 108 virtual const std::vector<GURL>& GetUrlChain() const OVERRIDE;
108 virtual const GURL& GetOriginalUrl() const OVERRIDE; 109 virtual const GURL& GetOriginalUrl() const OVERRIDE;
109 virtual const GURL& GetReferrerUrl() const OVERRIDE; 110 virtual const GURL& GetReferrerUrl() const OVERRIDE;
(...skipping 22 matching lines...) Expand all
132 virtual bool TimeRemaining(base::TimeDelta* remaining) const OVERRIDE; 133 virtual bool TimeRemaining(base::TimeDelta* remaining) const OVERRIDE;
133 virtual int64 CurrentSpeed() const OVERRIDE; 134 virtual int64 CurrentSpeed() const OVERRIDE;
134 virtual int PercentComplete() const OVERRIDE; 135 virtual int PercentComplete() const OVERRIDE;
135 virtual bool AllDataSaved() const OVERRIDE; 136 virtual bool AllDataSaved() const OVERRIDE;
136 virtual int64 GetTotalBytes() const OVERRIDE; 137 virtual int64 GetTotalBytes() const OVERRIDE;
137 virtual int64 GetReceivedBytes() const OVERRIDE; 138 virtual int64 GetReceivedBytes() const OVERRIDE;
138 virtual base::Time GetStartTime() const OVERRIDE; 139 virtual base::Time GetStartTime() const OVERRIDE;
139 virtual base::Time GetEndTime() const OVERRIDE; 140 virtual base::Time GetEndTime() const OVERRIDE;
140 virtual bool CanShowInFolder() OVERRIDE; 141 virtual bool CanShowInFolder() OVERRIDE;
141 virtual bool CanOpenDownload() OVERRIDE; 142 virtual bool CanOpenDownload() OVERRIDE;
143 virtual bool CanResumeDownload() const OVERRIDE;
142 virtual bool ShouldOpenFileBasedOnExtension() OVERRIDE; 144 virtual bool ShouldOpenFileBasedOnExtension() OVERRIDE;
143 virtual bool GetOpenWhenComplete() const OVERRIDE; 145 virtual bool GetOpenWhenComplete() const OVERRIDE;
144 virtual bool GetAutoOpened() OVERRIDE; 146 virtual bool GetAutoOpened() OVERRIDE;
145 virtual bool GetOpened() const OVERRIDE; 147 virtual bool GetOpened() const OVERRIDE;
146 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 148 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
147 virtual WebContents* GetWebContents() const OVERRIDE; 149 virtual WebContents* GetWebContents() const OVERRIDE;
148 virtual void OnContentCheckCompleted(DownloadDangerType danger_type) OVERRIDE; 150 virtual void OnContentCheckCompleted(DownloadDangerType danger_type) OVERRIDE;
149 virtual void SetOpenWhenComplete(bool open) OVERRIDE; 151 virtual void SetOpenWhenComplete(bool open) OVERRIDE;
150 virtual void SetIsTemporary(bool temporary) OVERRIDE; 152 virtual void SetIsTemporary(bool temporary) OVERRIDE;
151 virtual void SetOpened(bool opened) OVERRIDE; 153 virtual void SetOpened(bool opened) OVERRIDE;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 const net::BoundNetLog bound_net_log_; 489 const net::BoundNetLog bound_net_log_;
488 490
489 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 491 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
490 492
491 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 493 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
492 }; 494 };
493 495
494 } // namespace content 496 } // namespace content
495 497
496 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 498 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698