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

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, 4 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..6908f60caf59b5cf44f00768505ee73cc631ab11 100644
--- a/chrome/browser/download/download_history.h
+++ b/chrome/browser/download/download_history.h
@@ -31,6 +31,11 @@ class DownloadHistory {
explicit DownloadHistory(Profile* profile);
~DownloadHistory();
+ // Retrieves the next_id counter from the sql meta_table.
+ // Should be much faster than Load so that we may delay downloads until after
+ // this call with minimal performance penalty.
+ 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