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

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

Issue 10665049: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 d0fc397159b1534b08367770adfe9fd5a2ae799d..d3b1d2f7204a1eba028dcbbbd251a10acc1d196d 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
@@ -223,8 +218,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// true.
virtual void OnContentCheckCompleted(DownloadDangerType danger_type) = 0;
- virtual bool IsPersisted() const = 0;
-
// Accessors
virtual const std::string& GetHash() const = 0;
virtual DownloadState GetState() const = 0;
@@ -245,7 +238,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual DownloadId GetGlobalId() const = 0;
virtual base::Time GetStartTime() const = 0;
virtual base::Time GetEndTime() const = 0;
- virtual int64 GetDbHandle() const = 0;
virtual bool IsPaused() const = 0;
virtual bool GetOpenWhenComplete() const = 0;
virtual void SetOpenWhenComplete(bool open) = 0;
@@ -269,7 +261,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual const std::string& GetETag() const = 0;
virtual DownloadInterruptReason GetLastReason() const = 0;
- virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0;
virtual BrowserContext* GetBrowserContext() const = 0;
virtual WebContents* GetWebContents() const = 0;

Powered by Google App Engine
This is Rietveld 408576698