diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 18:51:01 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 18:51:01 +0000 |
commit | d2f05d07a90cf5c5bad814b603175acaefa254b5 (patch) | |
tree | 8e5e8d7724b8b505d418ea01277bc3f305d16182 /webkit/appcache | |
parent | c3dd6dad0308d941cad3d9e72787177875d065b6 (diff) | |
download | chromium_src-d2f05d07a90cf5c5bad814b603175acaefa254b5.zip chromium_src-d2f05d07a90cf5c5bad814b603175acaefa254b5.tar.gz chromium_src-d2f05d07a90cf5c5bad814b603175acaefa254b5.tar.bz2 |
Part 1 of repairing regressions to my old clang check plugins so Nico can
deploy the clang plugins to the waterfall/trybots.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/6366019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/appcache_database.cc | 15 | ||||
-rw-r--r-- | webkit/appcache/appcache_database.h | 19 |
2 files changed, 27 insertions, 7 deletions
diff --git a/webkit/appcache/appcache_database.cc b/webkit/appcache/appcache_database.cc index a4fbefe..0c7f1686 100644 --- a/webkit/appcache/appcache_database.cc +++ b/webkit/appcache/appcache_database.cc @@ -145,10 +145,23 @@ sql::ErrorDelegate* GetErrorHandlerForAppCacheDb() { } // anon namespace - // AppCacheDatabase ---------------------------------------------------------- namespace appcache { +AppCacheDatabase::GroupRecord::GroupRecord() + : group_id(0) { +} + +AppCacheDatabase::GroupRecord::~GroupRecord() { +} + +AppCacheDatabase::FallbackNameSpaceRecord::FallbackNameSpaceRecord() + : cache_id(0) { +} + +AppCacheDatabase::FallbackNameSpaceRecord::~FallbackNameSpaceRecord() { +} + AppCacheDatabase::AppCacheDatabase(const FilePath& path) : db_file_path_(path), is_disabled_(false), is_recreating_(false) { } diff --git a/webkit/appcache/appcache_database.h b/webkit/appcache/appcache_database.h index 7ecc54c..e0fb092 100644 --- a/webkit/appcache/appcache_database.h +++ b/webkit/appcache/appcache_database.h @@ -31,45 +31,52 @@ namespace appcache { class AppCacheDatabase { public: struct GroupRecord { + GroupRecord(); + ~GroupRecord(); + int64 group_id; GURL origin; GURL manifest_url; base::Time creation_time; base::Time last_access_time; - GroupRecord() : group_id(0) {} }; struct CacheRecord { + CacheRecord() + : cache_id(0), group_id(0), online_wildcard(false), cache_size(0) {} + int64 cache_id; int64 group_id; bool online_wildcard; base::Time update_time; int64 cache_size; // the sum of all response sizes in this cache - CacheRecord() - : cache_id(0), group_id(0), online_wildcard(false), cache_size(0) {} }; struct EntryRecord { + EntryRecord() : cache_id(0), flags(0), response_id(0), response_size(0) {} + int64 cache_id; GURL url; int flags; int64 response_id; int64 response_size; - EntryRecord() : cache_id(0), flags(0), response_id(0), response_size(0) {} }; struct FallbackNameSpaceRecord { + FallbackNameSpaceRecord(); + ~FallbackNameSpaceRecord(); + int64 cache_id; GURL origin; // intentionally not normalized GURL namespace_url; GURL fallback_entry_url; - FallbackNameSpaceRecord() : cache_id(0) {} }; struct OnlineWhiteListRecord { + OnlineWhiteListRecord() : cache_id(0) {} + int64 cache_id; GURL namespace_url; - OnlineWhiteListRecord() : cache_id(0) {} }; explicit AppCacheDatabase(const FilePath& path); |