| 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_PROFILE_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_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" |
| 19 #include "chrome/browser/sync/internal_api/read_node.h" |
| 20 #include "chrome/browser/sync/internal_api/write_transaction.h" |
| 20 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 21 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
| 21 #include "chrome/browser/webdata/autofill_entry.h" | 22 #include "chrome/browser/webdata/autofill_entry.h" |
| 22 | 23 |
| 23 class AutofillProfile; | 24 class AutofillProfile; |
| 24 | 25 |
| 25 class ProfileSyncService; | 26 class ProfileSyncService; |
| 26 class WebDatabase; | 27 class WebDatabase; |
| 27 | 28 |
| 28 namespace sync_api { | 29 namespace sync_api { |
| 29 class WriteTransaction; | 30 class WriteTransaction; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 std::set<std::string> current_profiles; | 191 std::set<std::string> current_profiles; |
| 191 std::vector<std::string> profiles_to_delete; | 192 std::vector<std::string> profiles_to_delete; |
| 192 std::vector<AutofillProfile*> updated_profiles; | 193 std::vector<AutofillProfile*> updated_profiles; |
| 193 std::vector<AutofillProfile*> new_profiles; // We own these pointers. | 194 std::vector<AutofillProfile*> new_profiles; // We own these pointers. |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 } // namespace browser_sync | 197 } // namespace browser_sync |
| 197 | 198 |
| 198 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ | 199 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ |
| 199 | 200 |
| OLD | NEW |