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

Unified Diff: content/public/browser/download_manager.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/public/browser/download_item.h ('k') | content/public/browser/download_manager_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_manager.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index 7501f0ef1dea5b153d8e47d642b4328687d1708c..086e39de40b451624d9ba1a6c9ef4fa93d2eb88f 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -185,13 +185,16 @@ class CONTENT_EXPORT DownloadManager
// Called by the embedder, after creating the download manager, to let it know
// about downloads from previous runs of the browser.
- virtual void OnPersistentStoreQueryComplete(
- std::vector<DownloadPersistentStoreInfo>* entries) = 0;
-
- // Called by the embedder, in response to
- // DownloadManagerDelegate::AddItemToPersistentStore.
- virtual void OnItemAddedToPersistentStore(int32 download_id,
- int64 db_handle) = 0;
+ virtual 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,
+ DownloadItem::DownloadState state,
+ bool opened) = 0;
// The number of in progress (including paused) downloads.
virtual int InProgressCount() const = 0;
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/download_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698