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

Unified Diff: content/public/browser/download_item.h

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r168573 Created 8 years, 1 month 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
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 691a0e2b53c73c857bd58d27340e13d2f055bb7f..9eaf629612e7ca77f2f89701deba996ac6da7bd2 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -42,8 +42,6 @@ class BrowserContext;
class DownloadId;
class DownloadManager;
class WebContents;
-struct DownloadCreateInfo;
-struct DownloadPersistentStoreInfo;
// One DownloadItem per download. This is the model class that stores all the
// state for a download. Multiple views, such as a tab's download shelf and the
@@ -89,10 +87,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// TARGET_DISPOSITION_OVERWRITE.
};
- // A fake download table ID which represents a download that has started,
- // but is not yet in the table.
- static const int kUninitializedHandle;
-
static const char kEmptyFileHash[];
// Interface that observers of a particular download must implement in order
@@ -157,7 +151,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual int32 GetId() const = 0;
virtual DownloadId GetGlobalId() const = 0;
- virtual int64 GetDbHandle() const = 0;
virtual DownloadState GetState() const = 0;
// Only valid if |GetState() == DownloadItem::INTERRUPTED|.
@@ -165,7 +158,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual bool IsPaused() const = 0;
virtual bool IsTemporary() const = 0;
- virtual bool IsPersisted() const = 0;
// Convenience routines for accessing GetState() results conceptually -----
@@ -299,7 +291,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Misc State accessors ---------------------------------------------------
- virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0;
virtual BrowserContext* GetBrowserContext() const = 0;
virtual WebContents* GetWebContents() const = 0;

Powered by Google App Engine
This is Rietveld 408576698