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

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: sql::MetaTable.next_download_id, DownloadId, DownloadManager::GetNextId() 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/history/history.h
diff --git a/chrome/browser/history/history.h b/chrome/browser/history/history.h
index 06008de5b56fe64332998bbf6b0c808bb42d5f33..33c56dcd27682d20a869c564793cb4fbf2d81c37 100644
--- a/chrome/browser/history/history.h
+++ b/chrome/browser/history/history.h
@@ -425,6 +425,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