summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache')
-rw-r--r--webkit/appcache/appcache_database.cc15
-rw-r--r--webkit/appcache/appcache_database.h19
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);