summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/syncable/syncable.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/syncable/syncable.h')
-rw-r--r--chrome/browser/sync/syncable/syncable.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/sync/syncable/syncable.h b/chrome/browser/sync/syncable/syncable.h
index 7cdae1c..a3c2212 100644
--- a/chrome/browser/sync/syncable/syncable.h
+++ b/chrome/browser/sync/syncable/syncable.h
@@ -228,7 +228,8 @@ struct EntryKernel {
std::bitset<BIT_TEMPS_COUNT> bit_temps;
public:
- EntryKernel() : dirty_(false) {}
+ EntryKernel();
+ ~EntryKernel();
// Set the dirty bit, and optionally add this entry's metahandle to
// a provided index on dirty bits in |dirty_index|. Parameter may be null,
@@ -659,6 +660,9 @@ class Directory {
// Various data that the Directory::Kernel we are backing (persisting data
// for) needs saved across runs of the application.
struct PersistedKernelInfo {
+ PersistedKernelInfo();
+ ~PersistedKernelInfo();
+
// Last sync timestamp fetched from the server.
int64 last_download_timestamp[MODEL_TYPE_COUNT];
// true iff we ever reached the end of the changelog.
@@ -668,11 +672,6 @@ class Directory {
std::string store_birthday;
// The next local ID that has not been used with this cache-GUID.
int64 next_id;
- PersistedKernelInfo() : next_id(0) {
- for (int i = 0; i < MODEL_TYPE_COUNT; ++i) {
- last_download_timestamp[i] = 0;
- }
- }
};
// What the Directory needs on initialization to create itself and its Kernel.
@@ -697,12 +696,13 @@ class Directory {
// constructed and forms a consistent snapshot of what needs to be sent to
// the backing store.
struct SaveChangesSnapshot {
+ SaveChangesSnapshot();
+ ~SaveChangesSnapshot();
+
KernelShareInfoStatus kernel_info_status;
PersistedKernelInfo kernel_info;
OriginalEntries dirty_metas;
MetahandleSet metahandles_to_purge;
- SaveChangesSnapshot() : kernel_info_status(KERNEL_SHARE_INFO_INVALID) {
- }
};
Directory();