| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ | 4 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ |
| 5 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ | 5 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/scoped_observer.h" | 15 #include "base/scoped_observer.h" |
| 16 #include "base/supports_user_data.h" | 16 #include "base/supports_user_data.h" |
| 17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
| 19 #include "components/autofill/core/browser/field_types.h" | 19 #include "components/autofill/core/browser/field_types.h" |
| 20 #include "components/autofill/core/browser/webdata/autofill_change.h" | 20 #include "components/autofill/core/browser/webdata/autofill_change.h" |
| 21 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 21 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| 22 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" | 22 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" |
| 23 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse
rver.h" | 23 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse
rver.h" |
| 24 #include "sync/api/sync_change.h" | 24 #include "components/sync/api/sync_change.h" |
| 25 #include "sync/api/sync_data.h" | 25 #include "components/sync/api/sync_data.h" |
| 26 #include "sync/api/sync_error.h" | 26 #include "components/sync/api/sync_error.h" |
| 27 #include "sync/api/syncable_service.h" | 27 #include "components/sync/api/syncable_service.h" |
| 28 #include "sync/protocol/autofill_specifics.pb.h" | 28 #include "components/sync/protocol/autofill_specifics.pb.h" |
| 29 | 29 |
| 30 class ProfileSyncServiceAutofillTest; | 30 class ProfileSyncServiceAutofillTest; |
| 31 | 31 |
| 32 namespace autofill { | 32 namespace autofill { |
| 33 | 33 |
| 34 class AutofillProfile; | 34 class AutofillProfile; |
| 35 class AutofillTable; | 35 class AutofillTable; |
| 36 class AutofillWebDataService; | 36 class AutofillWebDataService; |
| 37 | 37 |
| 38 extern const char kAutofillProfileTag[]; | 38 extern const char kAutofillProfileTag[]; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // When we go through sync we find profiles that are similar but unmatched. | 208 // When we go through sync we find profiles that are similar but unmatched. |
| 209 // Merge such profiles. | 209 // Merge such profiles. |
| 210 GUIDToProfileMap candidates_to_merge; | 210 GUIDToProfileMap candidates_to_merge; |
| 211 // Profiles that have multi-valued fields that are not in sync. | 211 // Profiles that have multi-valued fields that are not in sync. |
| 212 std::vector<AutofillProfile*> profiles_to_sync_back; | 212 std::vector<AutofillProfile*> profiles_to_sync_back; |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace autofill | 215 } // namespace autofill |
| 216 | 216 |
| 217 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SE
RVICE_H_ | 217 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SE
RVICE_H_ |
| OLD | NEW |