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

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

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: DownloadPrefs::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/download/download_prefs.h
diff --git a/chrome/browser/download/download_prefs.h b/chrome/browser/download/download_prefs.h
index cd7bad44e961bc81369d67d8d1d3d9be28c9dce3..3c30b705fa0602a9827a5b09152f9c659b5cbb6e 100644
--- a/chrome/browser/download/download_prefs.h
+++ b/chrome/browser/download/download_prefs.h
@@ -21,6 +21,10 @@ class DownloadPrefs {
static void RegisterUserPrefs(PrefService* prefs);
+ // Return the next download id and increment the counter. Must be called on
+ // the UI thread.
+ int GetNextId();
+
FilePath download_path() const { return *download_path_; }
int save_file_type() const { return *save_file_type_; }
@@ -53,6 +57,7 @@ class DownloadPrefs {
PrefService* prefs_;
+ IntegerPrefMember next_download_id_;
BooleanPrefMember prompt_for_download_;
FilePathPrefMember download_path_;
IntegerPrefMember save_file_type_;

Powered by Google App Engine
This is Rietveld 408576698