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

Unified Diff: chrome/browser/sync/syncable/autofill_migration.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/sync_ui_util.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/autofill_migration.h
diff --git a/chrome/browser/sync/syncable/autofill_migration.h b/chrome/browser/sync/syncable/autofill_migration.h
new file mode 100644
index 0000000000000000000000000000000000000000..81a16be88ec2e331b7bc61d155ea0c564f4d2b91
--- /dev/null
+++ b/chrome/browser/sync/syncable/autofill_migration.h
@@ -0,0 +1,49 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_SYNCABLE_AUTOFILL_MIGRATION_H_
+#define CHROME_BROWSER_SYNC_SYNCABLE_AUTOFILL_MIGRATION_H_
+#pragma once
+
+namespace syncable {
+enum AutofillMigrationState {
+
+ // Indicates the default state. After first run the state would change to
+ // one of the following.
+ NOT_DETERMINED,
+
+ // The autofill profile is not migrated. Current sync should migrate the data
+ // by syncing down the old autofill and syncing profiles back up to the server
+ // as new autofill.
+ NOT_MIGRATED,
+
+ // We have migrated the autofill profile data. From now on autofill and
+ // autofill profiles are 2 seperate data types.
+ MIGRATED,
+
+ // The autofill datatype is being synced new.(either because this is a new
+ // client or the user just enabled them for syncing). In which case if
+ // someother client had migrated the data already then our new state after
+ // first sync would be MIGRATED. Else we would be responsible for migrating
+ // the data.
+ INSUFFICIENT_INFO_TO_DETERMINE
+};
+
+struct AutofillMigrationDebugInfo {
+ enum PropertyToSet {
+ MIGRATION_TIME,
+ BOOKMARK_ADDED,
+ ENTRIES_ADDED,
+ PROFILES_ADDED
+ };
+ int64 autofill_migration_time;
+ int bookmarks_added_during_migration;
+ int autofill_entries_added_during_migration;
+ int autofill_profile_added_during_migration;
+};
+
+} // namespace syncable
+
+#endif // CHROME_BROWSER_SYNC_SYNCABLE_AUTOFILL_MIGRATION_H_
+
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698