Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: chrome/browser/sync/syncable/syncable.h

Issue 5159001: Rest of the autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch uploaded to debug why try servers have problem applying this patch. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/syncable/model_type.cc ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable.h
diff --git a/chrome/browser/sync/syncable/syncable.h b/chrome/browser/sync/syncable/syncable.h
index 19d98ee9b7289eb2e9ea1c2d77f7b9d80aa9b14f..cccf4170e9fed440cd616badb6089abd6455138a 100644
--- a/chrome/browser/sync/syncable/syncable.h
+++ b/chrome/browser/sync/syncable/syncable.h
@@ -21,6 +21,7 @@
#include "base/lock.h"
#include "base/time.h"
#include "chrome/browser/sync/protocol/sync.pb.h"
+#include "chrome/browser/sync/syncable/autofill_migration.h"
#include "chrome/browser/sync/syncable/blob.h"
#include "chrome/browser/sync/syncable/dir_open_result.h"
#include "chrome/browser/sync/syncable/directory_event.h"
@@ -660,6 +661,8 @@ class Directory {
// Various data that the Directory::Kernel we are backing (persisting data
// for) needs saved across runs of the application.
struct PersistedKernelInfo {
+ AutofillMigrationDebugInfo autofill_migration_debug_info;
+
PersistedKernelInfo();
~PersistedKernelInfo();
@@ -674,6 +677,8 @@ class Directory {
int64 next_id;
// The persisted notification state.
std::string notification_state;
+
+ AutofillMigrationState autofill_migration_state;
};
// What the Directory needs on initialization to create itself and its Kernel.
@@ -754,6 +759,15 @@ class Directory {
bool initial_sync_ended_for_type(ModelType type) const;
void set_initial_sync_ended_for_type(ModelType type, bool value);
+ AutofillMigrationState get_autofill_migration_state() const;
+
+ AutofillMigrationDebugInfo get_autofill_migration_debug_info() const;
+
+ void set_autofill_migration_state(AutofillMigrationState state);
+
+ void set_autofill_migration_state_debug_info(
+ syncable::AutofillMigrationDebugInfo::PropertyToSet property_to_set,
+ const syncable::AutofillMigrationDebugInfo& info);
const std::string& name() const { return kernel_->name; }
@@ -804,6 +818,8 @@ class Directory {
DirOpenResult OpenImpl(const FilePath& file_path, const std::string& name);
+ template <class T> void TestAndSet(T* kernel_data, const T* data_to_set);
+
struct DirectoryEventTraits {
typedef DirectoryEvent EventType;
static inline bool IsChannelShutdownEvent(const DirectoryEvent& event) {
« no previous file with comments | « chrome/browser/sync/syncable/model_type.cc ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698