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

Unified Diff: chrome/browser/history/download_database.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/download_database.h
diff --git a/chrome/browser/history/download_database.h b/chrome/browser/history/download_database.h
index bef60a1bc5cedaaceea235828407b2d6f2d0dee3..b777e84f051b2636724d1c4b63809d800448f80b 100644
--- a/chrome/browser/history/download_database.h
+++ b/chrome/browser/history/download_database.h
@@ -7,6 +7,7 @@
#pragma once
#include "chrome/browser/history/history_types.h"
+#include "sql/meta_table.h"
struct DownloadHistoryInfo;
class FilePath;
@@ -24,6 +25,8 @@ class DownloadDatabase {
DownloadDatabase();
virtual ~DownloadDatabase();
+ int next_download_id() const { return next_id_; }
+
// Get all the downloads from the database.
void QueryDownloads(std::vector<DownloadHistoryInfo>* results);
@@ -63,6 +66,9 @@ class DownloadDatabase {
bool DropDownloadTable();
private:
+ int next_id_;
+ sql::MetaTable meta_table_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadDatabase);
};

Powered by Google App Engine
This is Rietveld 408576698