Index: chrome/browser/download/download_history.h |
diff --git a/chrome/browser/download/download_history.h b/chrome/browser/download/download_history.h |
index 6d6b237be327a7190d0287c89a3848ac7dd5c19a..45f978ba024489434fb178e1ccc3ed03b388a58d 100644 |
--- a/chrome/browser/download/download_history.h |
+++ b/chrome/browser/download/download_history.h |
@@ -27,6 +27,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); |