OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/lock.h" | |
16 #include "base/ref_counted.h" | 15 #include "base/ref_counted.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" | 18 #include "chrome/browser/sync/engine/syncapi.h" |
19 #include "chrome/browser/sync/glue/model_associator.h" | 19 #include "chrome/browser/sync/glue/model_associator.h" |
20 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 20 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
21 #include "chrome/browser/webdata/autofill_entry.h" | 21 #include "chrome/browser/webdata/autofill_entry.h" |
22 | 22 |
23 class AutoFillProfile; | 23 class AutoFillProfile; |
24 | 24 |
25 class ProfileSyncService; | 25 class ProfileSyncService; |
26 class WebDatabase; | 26 class WebDatabase; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 WebDatabase* web_database_; | 176 WebDatabase* web_database_; |
177 PersonalDataManager* personal_data_; | 177 PersonalDataManager* personal_data_; |
178 int64 autofill_node_id_; | 178 int64 autofill_node_id_; |
179 | 179 |
180 AutofillToSyncIdMap id_map_; | 180 AutofillToSyncIdMap id_map_; |
181 SyncIdToAutofillMap id_map_inverse_; | 181 SyncIdToAutofillMap id_map_inverse_; |
182 | 182 |
183 // Abort association pending flag and lock. If this is set to true | 183 // Abort association pending flag and lock. If this is set to true |
184 // (via the AbortAssociation method), return from the | 184 // (via the AbortAssociation method), return from the |
185 // AssociateModels method as soon as possible. | 185 // AssociateModels method as soon as possible. |
186 Lock abort_association_pending_lock_; | 186 base::Lock abort_association_pending_lock_; |
187 bool abort_association_pending_; | 187 bool abort_association_pending_; |
188 int number_of_entries_created_; | 188 int number_of_entries_created_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(AutofillModelAssociator); | 190 DISALLOW_COPY_AND_ASSIGN(AutofillModelAssociator); |
191 }; | 191 }; |
192 | 192 |
193 } // namespace browser_sync | 193 } // namespace browser_sync |
194 | 194 |
195 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ | 195 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ |
OLD | NEW |