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

Unified Diff: content/browser/download/download_manager_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_impl.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager_impl.h
diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
index 8fab016f1d9e36c1eb7a434c1ee2d38a8b79bd0e..87af45623fa0a1eb5408c29c43227dfeb0adc579 100644
--- a/content/browser/download/download_manager_impl.h
+++ b/content/browser/download/download_manager_impl.h
@@ -79,10 +79,16 @@ class CONTENT_EXPORT DownloadManagerImpl
scoped_ptr<content::DownloadUrlParameters> params) OVERRIDE;
virtual void AddObserver(Observer* observer) OVERRIDE;
virtual void RemoveObserver(Observer* observer) OVERRIDE;
- virtual void OnPersistentStoreQueryComplete(
- std::vector<content::DownloadPersistentStoreInfo>* entries) OVERRIDE;
- virtual void OnItemAddedToPersistentStore(int32 download_id,
- int64 db_handle) OVERRIDE;
+ virtual content::DownloadItem* CreateDownloadItem(
+ 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,
+ content::DownloadItem::DownloadState state,
+ bool opened) OVERRIDE;
virtual int InProgressCount() const OVERRIDE;
virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
virtual void CheckForHistoryFilesRemoval() OVERRIDE;
@@ -144,9 +150,6 @@ class CONTENT_EXPORT DownloadManagerImpl
// containers; no-op if NDEBUG.
void AssertContainersConsistent() const;
- // Add a DownloadItem to history_downloads_.
- void AddDownloadItemToHistory(DownloadItemImpl* item, int64 db_handle);
-
// Remove from internal maps.
int RemoveDownloadItems(const DownloadItemImplVector& pending_deletes);
@@ -166,12 +169,6 @@ class CONTENT_EXPORT DownloadManagerImpl
content::DownloadDangerType danger_type,
const FilePath& intermediate_path);
- // Called when a download entry is committed to the persistent store.
- void OnDownloadItemAddedToPersistentStore(DownloadItemImpl* item);
-
- // Called when Save Page As entry is committed to the persistent store.
- void OnSavePageItemAddedToPersistentStore(DownloadItemImpl* item);
-
// Overridden from DownloadItemImplDelegate
// (Note that |GetBrowserContext| are present in both interfaces.)
virtual DownloadFileManager* GetDownloadFileManager() OVERRIDE;
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698