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

Unified Diff: content/browser/download/download_item_impl.h

Issue 10665049: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_item_factory.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item_impl.h
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
index 5c5a0c348bf567b514530c5213fdc52cf23e3f34..e461aad277ceb1fecdab8a22c940c6aaddedeb9b 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -36,7 +36,15 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
// |bound_net_log| is constructed externally for our use.
DownloadItemImpl(DownloadItemImplDelegate* delegate,
content::DownloadId download_id,
- const content::DownloadPersistentStoreInfo& info,
+ const FilePath& path,
+ const GURL& url,
+ const GURL& referrer_url,
+ const base::Time& start_time,
+ const base::Time& end_time,
+ int64 received_bytes,
+ int64 total_bytes,
+ DownloadItem::DownloadState state,
+ bool opened,
const net::BoundNetLog& bound_net_log);
// Constructing for a regular download.
@@ -70,12 +78,10 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
virtual void ShowDownloadInShell() OVERRIDE;
virtual int32 GetId() const OVERRIDE;
virtual content::DownloadId GetGlobalId() const OVERRIDE;
- virtual int64 GetDbHandle() const OVERRIDE;
virtual DownloadState GetState() const OVERRIDE;
virtual content::DownloadInterruptReason GetLastReason() const OVERRIDE;
virtual bool IsPaused() const OVERRIDE;
virtual bool IsTemporary() const OVERRIDE;
- virtual bool IsPersisted() const OVERRIDE;
virtual bool IsPartialDownload() const OVERRIDE;
virtual bool IsInProgress() const OVERRIDE;
virtual bool IsCancelled() const OVERRIDE;
@@ -123,8 +129,6 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
virtual bool GetAutoOpened() OVERRIDE;
virtual bool GetOpened() const OVERRIDE;
virtual bool MatchesQuery(const string16& query) const OVERRIDE;
- virtual content::DownloadPersistentStoreInfo
- GetPersistentStoreInfo() const OVERRIDE;
virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
virtual content::WebContents* GetWebContents() const OVERRIDE;
virtual void DelayedDownloadOpened(bool auto_opened) OVERRIDE;
@@ -202,12 +206,6 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
// should be considered complete.
virtual void MarkAsComplete();
- // Interactions with persistence system --------------------------------------
-
- // TODO(benjhayden): Remove when DownloadHistory becomes an observer.
- virtual void SetIsPersisted();
- virtual void SetDbHandle(int64 handle);
-
private:
// Normal progression of a download ------------------------------------------
@@ -369,9 +367,6 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
// Time the download completed.
base::Time end_time_;
- // Our persistent store handle.
- int64 db_handle_;
-
// Our delegate.
DownloadItemImplDelegate* delegate_;
@@ -393,8 +388,6 @@ class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
// before the observer is added.
bool auto_opened_;
- bool is_persisted_;
-
// True if the item was downloaded temporarily.
bool is_temporary_;
« no previous file with comments | « content/browser/download/download_item_factory.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698