| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "chrome/browser/autofill/personal_data_manager.h" | 17 #include "chrome/browser/autofill/personal_data_manager.h" |
| 18 #include "chrome/browser/sync/engine/syncapi.h" | |
| 19 #include "chrome/browser/sync/glue/model_associator.h" | 18 #include "chrome/browser/sync/glue/model_associator.h" |
| 20 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 19 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
| 21 #include "chrome/browser/webdata/autofill_entry.h" | 20 #include "chrome/browser/webdata/autofill_entry.h" |
| 22 | 21 |
| 23 class AutofillProfile; | 22 class AutofillProfile; |
| 24 | 23 |
| 25 class ProfileSyncService; | 24 class ProfileSyncService; |
| 26 class WebDatabase; | 25 class WebDatabase; |
| 27 | 26 |
| 28 namespace sync_api { | 27 namespace sync_api { |
| 28 class ReadNode; |
| 29 class WriteTransaction; | 29 class WriteTransaction; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace browser_sync { | 32 namespace browser_sync { |
| 33 | 33 |
| 34 class AutofillChangeProcessor; | 34 class AutofillChangeProcessor; |
| 35 class UnrecoverableErrorHandler; | 35 class UnrecoverableErrorHandler; |
| 36 | 36 |
| 37 extern const char kAutofillTag[]; | 37 extern const char kAutofillTag[]; |
| 38 extern const char kAutofillProfileNamespaceTag[]; | 38 extern const char kAutofillProfileNamespaceTag[]; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // AssociateModels method as soon as possible. | 179 // AssociateModels method as soon as possible. |
| 180 base::Lock abort_association_pending_lock_; | 180 base::Lock abort_association_pending_lock_; |
| 181 bool abort_association_pending_; | 181 bool abort_association_pending_; |
| 182 | 182 |
| 183 DISALLOW_COPY_AND_ASSIGN(AutofillModelAssociator); | 183 DISALLOW_COPY_AND_ASSIGN(AutofillModelAssociator); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 } // namespace browser_sync | 186 } // namespace browser_sync |
| 187 | 187 |
| 188 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ | 188 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |