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

Unified Diff: chrome/browser/history/history.h

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: MSVC requires operator< for hash_map 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/history/history.h
diff --git a/chrome/browser/history/history.h b/chrome/browser/history/history.h
index fe835b1418e957e41b334937c38d3ea3b14b7ea6..be168ae67c4c9cd43df5dc1cdc559d071124bbaa 100644
--- a/chrome/browser/history/history.h
+++ b/chrome/browser/history/history.h
@@ -423,6 +423,13 @@ class HistoryService : public CancelableRequestProvider,
CancelableRequestConsumerBase* consumer,
DownloadCreateCallback* callback);
+ // Implemented by the caller of 'GetNextDownloadId' below.
+ typedef Callback1<int/*next_download_id*/>::Type DownloadNextIdCallback;
+
+ // Runs the callback with the next available download id.
+ Handle GetNextDownloadId(CancelableRequestConsumerBase* consumer,
+ DownloadNextIdCallback* callback);
+
// Implemented by the caller of 'QueryDownloads' below, and is called when the
// history service has retrieved a list of all download state. The call
typedef Callback1<std::vector<DownloadHistoryInfo>*>::Type

Powered by Google App Engine
This is Rietveld 408576698