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

Unified Diff: chrome/browser/download/download_manager.h

Issue 7277073: Support for adding save page download items into downloads history. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | « no previous file | chrome/browser/download/download_manager.cc » ('j') | chrome/browser/download/save_package.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.h
===================================================================
--- chrome/browser/download/download_manager.h (revision 91883)
+++ chrome/browser/download/download_manager.h (working copy)
@@ -266,6 +266,11 @@
// been removed from the active map, or was retrieved from the history DB.
DownloadItem* GetDownloadItem(int id);
+ DownloadHistory* download_history() { return download_history_.get(); }
Randy Smith (Not in Mondays) 2011/07/10 19:37:40 I'm inclined to think that this should be const (t
achuithb 2011/07/13 21:48:16 I made it const (along with some other accessors),
+
+ // Add a DownloadItem to history_downloads_.
+ void AddDownloadItemToHistory(DownloadItem* item, int64 db_handle);
+
private:
// For testing.
friend class DownloadManagerTest;
@@ -352,9 +357,6 @@
// containers; no-op if NDEBUG.
void AssertContainersConsistent() const;
- // Add a DownloadItem to history_downloads_.
- void AddDownloadItemToHistory(DownloadItem* item, int64 db_handle);
-
// |downloads_| is the owning set for all downloads known to the
// DownloadManager. This includes downloads started by the user in
// this session, downloads initialized from the history system, and
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | chrome/browser/download/save_package.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698