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

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: @r159248 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
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 67b4172cf99dbea0784163bdde24e478fee5b844..c04087466de62fb66699c8de007a08f1605d4f62 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -43,7 +43,6 @@ class BrowserContext;
class DownloadId;
class DownloadManager;
class WebContents;
-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 +88,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 +152,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 +159,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 +292,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