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

Unified Diff: content/public/browser/download_manager_delegate.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_manager_delegate.h
diff --git a/content/public/browser/download_manager_delegate.h b/content/public/browser/download_manager_delegate.h
index 27269f21eadf944cb78f803b4bdfbb9cc2d9c4ec..7c7d85c3310b01536730d919e6f83384b0fedbc8 100644
--- a/content/public/browser/download_manager_delegate.h
+++ b/content/public/browser/download_manager_delegate.h
@@ -100,33 +100,6 @@ class CONTENT_EXPORT DownloadManagerDelegate {
// Returns true if we need to generate a binary hash for downloads.
virtual bool GenerateFileHash();
- // Notifies the delegate that a new download item is created. The
- // DownloadManager waits for the delegate to add information about this
- // download to its persistent store. When the delegate is done, it calls
- // DownloadManager::OnDownloadItemAddedToPersistentStore.
- virtual void AddItemToPersistentStore(DownloadItem* item) {}
-
- // Notifies the delegate that information about the given download has change,
- // so that it can update its persistent store.
- // Does not update |url|, |start_time|, |total_bytes|; uses |db_handle| only
- // to select the row in the database table to update.
- virtual void UpdateItemInPersistentStore(DownloadItem* item) {}
-
- // Notifies the delegate that path for the download item has changed, so that
- // it can update its persistent store.
- virtual void UpdatePathForItemInPersistentStore(
- DownloadItem* item,
- const FilePath& new_path) {}
-
- // Notifies the delegate that it should remove the download item from its
- // persistent store.
- virtual void RemoveItemFromPersistentStore(DownloadItem* item) {}
-
- // Notifies the delegate to remove downloads from the given time range.
- virtual void RemoveItemsFromPersistentStoreBetween(
- base::Time remove_begin,
- base::Time remove_end) {}
-
// Retrieve the directories to save html pages and downloads to.
virtual void GetSaveDir(BrowserContext* browser_context,
FilePath* website_save_dir,

Powered by Google App Engine
This is Rietveld 408576698