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

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

Issue 7847027: DownloadId (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 3 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/extensions/extension_downloads_api.cc ('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 85c6722727d6a3e9ffc1c4853c72115c7c9ea731..1d5d3fde9de3c1d361aeb0e86b45b3d12061ab2f 100644
--- a/chrome/browser/history/download_database.h
+++ b/chrome/browser/history/download_database.h
@@ -8,8 +8,9 @@
#include <set>
-#include "chrome/browser/history/history_types.h"
#include "base/threading/platform_thread.h"
+#include "chrome/browser/history/history_types.h"
+#include "sql/meta_table.h"
struct DownloadPersistentStoreInfo;
class FilePath;
@@ -27,6 +28,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);
@@ -71,6 +74,9 @@ class DownloadDatabase {
bool owning_thread_set_;
base::PlatformThreadId owning_thread_;
+ int next_id_;
+ sql::MetaTable meta_table_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadDatabase);
};
« no previous file with comments | « chrome/browser/extensions/extension_downloads_api.cc ('k') | chrome/browser/history/download_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698