Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147)

Unified Diff: gears/base/common/permissions_db.h

Issue 800: Database2Versions table, get/set version operations implemented (Closed) SVN Base: http://google-gears.googlecode.com/svn/contrib/dimitri.glazkov/database2/
Patch Set: renamed table to Database2Metadata Created 3 months, 3 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: gears/base/common/permissions_db.h
===================================================================
--- gears/base/common/permissions_db.h (revision 1639)
+++ gears/base/common/permissions_db.h (working copy)
@@ -28,6 +28,7 @@
#include <map>
#include "gears/base/common/database_name_table.h"
+#include "gears/base/common/database2_metadata.h"
#include "gears/base/common/name_value_table.h"
#include "gears/base/common/security_model.h"
#include "gears/base/common/shortcut_table.h"
@@ -142,6 +143,10 @@
const char16 *database_name,
const char16 *basename);
+ // Get the metadata table for Database2 API. The metadata table stores
+ // version information
+ Database2Metadata &GetDatabase2Metadata();
+
private:
// Private constructor, callers must use GetDB().
PermissionsDB();
@@ -157,6 +162,7 @@
// Schema upgrade functions. Higher-numbered functions call
// lower-numbered functions as appropriate.
+ bool UpgradeToVersion8();
bool UpgradeToVersion7();
bool UpgradeToVersion6();
bool UpgradeToVersion5();
@@ -182,6 +188,9 @@
DatabaseNameTable database_name_table_;
+ // database2 metadata
+ Database2Metadata database2_metadata_table_;
+
DISALLOW_EVIL_CONSTRUCTORS(PermissionsDB);
DECL_SINGLE_THREAD
};

Powered by Google App Engine
This is Rietveld r305