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

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: fix merge 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
« no previous file with comments | « chrome/browser/download/download_util.h ('k') | chrome/browser/history/download_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/download_database.h
diff --git a/chrome/browser/history/download_database.h b/chrome/browser/history/download_database.h
index c77500ccf88777e3d427c8050fe577b872b816cd..8f97e55be8f380955a30c24dde6a5ab4258e8615 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 DownloadPersistentStoreInfo;
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<DownloadPersistentStoreInfo>* results);
@@ -63,6 +66,9 @@ class DownloadDatabase {
bool DropDownloadTable();
private:
+ int next_id_;
+ sql::MetaTable meta_table_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadDatabase);
};
« no previous file with comments | « chrome/browser/download/download_util.h ('k') | chrome/browser/history/download_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698