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

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

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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
Index: chrome/browser/download/download_history.h
diff --git a/chrome/browser/download/download_history.h b/chrome/browser/download/download_history.h
index f4b48812137e7d34848e623cb39fb957f81e3e1d..c0cb5aac92d7dd5941b690bf458e52b371f2e7a2 100644
--- a/chrome/browser/download/download_history.h
+++ b/chrome/browser/download/download_history.h
@@ -31,6 +31,10 @@ class DownloadHistory {
explicit DownloadHistory(Profile* profile);
~DownloadHistory();
+ // Retrieves the next_id counter from the sql meta_table.
+ // Should be much faster than Load; downloads cannot happen until after this.
Randy Smith (Not in Mondays) 2011/07/28 21:03:16 nit: This comment is inaccurate for this CL, thoug
benjhayden 2011/08/03 17:44:46 Done.
+ void GetNextId(HistoryService::DownloadNextIdCallback* callback);
+
// Retrieves DownloadCreateInfos saved in the history.
void Load(HistoryService::DownloadQueryCallback* callback);

Powered by Google App Engine
This is Rietveld 408576698