diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 22:46:55 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 22:46:55 +0000 |
commit | 35f2094cd0ac27018aff2646445f44c3f9ee8d36 (patch) | |
tree | 0f4892fb2f6bcf9d5f044e70c1cf1ed0d42bb882 /app/sql/meta_table.h | |
parent | 6d38a7fc2594f14cbb87e28389c81965381b64e8 (diff) | |
download | chromium_src-35f2094cd0ac27018aff2646445f44c3f9ee8d36.zip chromium_src-35f2094cd0ac27018aff2646445f44c3f9ee8d36.tar.gz chromium_src-35f2094cd0ac27018aff2646445f44c3f9ee8d36.tar.bz2 |
AppCacheDatabase and SQL based AppCacheStorageImpl.
Still nothing is being written to disk with this CL,
in-memory SQLite and DiskCaches are being utilized.
Responses are not yet being removed from the DiskCasche
when the should be. Once that's done (in the next CL), we'll
start saving things on disk.
BUG=none
TEST=appcache_database_unittest.cc, appcache_storage_impl_unittest.cc
Review URL: http://codereview.chromium.org/518020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/sql/meta_table.h')
-rw-r--r-- | app/sql/meta_table.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/app/sql/meta_table.h b/app/sql/meta_table.h index 6ccee17..ae78e11 100644 --- a/app/sql/meta_table.h +++ b/app/sql/meta_table.h @@ -16,19 +16,16 @@ class Statement; class MetaTable { public: + // Returns true if the 'meta' table exists. + static bool DoesTableExist(Connection* db); + MetaTable(); ~MetaTable(); // Initializes the MetaTableHelper, creating the meta table if necessary. For // new tables, it will initialize the version number to |version| and the // compatible version number to |compatible_version|. - // - // The name of the database in the sqlite connection (for tables named with - // the "db_name.table_name" scheme is given in |db_name|. If empty, it is - // assumed there is no database name. - bool Init(Connection* db, - int version, - int compatible_version); + bool Init(Connection* db, int version, int compatible_version); // The version number of the database. This should be the version number of // the creator of the file. The version number will be 0 if there is no @@ -74,11 +71,6 @@ class MetaTable { Connection* db_; - // Name of the database within the connection, if there is one. When empty, - // there is no special database name and the table name can be used - // unqualified. - std::string db_name_; - DISALLOW_COPY_AND_ASSIGN(MetaTable); }; |