| 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_CHANGE_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/autofill/autofill_profile.h" | 11 #include "chrome/browser/autofill/autofill_profile.h" |
| 12 #include "chrome/browser/autofill/credit_card.h" | 12 #include "chrome/browser/autofill/credit_card.h" |
| 13 #include "chrome/browser/autofill/personal_data_manager.h" | 13 #include "chrome/browser/autofill/personal_data_manager.h" |
| 14 #include "chrome/browser/sync/engine/syncapi.h" | |
| 15 #include "chrome/browser/sync/glue/change_processor.h" | 14 #include "chrome/browser/sync/glue/change_processor.h" |
| 16 #include "chrome/browser/sync/glue/sync_backend_host.h" | 15 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 16 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 17 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 17 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
| 18 #include "chrome/browser/webdata/web_data_service.h" | 18 #include "chrome/browser/webdata/web_data_service.h" |
| 19 #include "content/common/notification_observer.h" | 19 #include "content/common/notification_observer.h" |
| 20 #include "content/common/notification_registrar.h" | 20 #include "content/common/notification_registrar.h" |
| 21 | 21 |
| 22 class AutofillCreditCardChange; | 22 class AutofillCreditCardChange; |
| 23 class AutofillEntry; | 23 class AutofillEntry; |
| 24 class AutofillProfileChange; | 24 class AutofillProfileChange; |
| 25 class PersonalDataManager; | 25 class PersonalDataManager; |
| 26 class WebDatabase; | 26 class WebDatabase; |
| 27 | 27 |
| 28 namespace sync_api { |
| 29 class ReadNode; |
| 30 class WriteNode; |
| 31 class WriteTransaction; |
| 32 } // namespace sync_api |
| 33 |
| 28 namespace browser_sync { | 34 namespace browser_sync { |
| 29 | 35 |
| 30 class AutofillModelAssociator; | 36 class AutofillModelAssociator; |
| 31 class UnrecoverableErrorHandler; | 37 class UnrecoverableErrorHandler; |
| 32 | 38 |
| 33 // This class is responsible for taking changes from the web data service and | 39 // This class is responsible for taking changes from the web data service and |
| 34 // applying them to the sync_api 'syncable' model, and vice versa. All | 40 // applying them to the sync_api 'syncable' model, and vice versa. All |
| 35 // operations and use of this class are from the DB thread. | 41 // operations and use of this class are from the DB thread. |
| 36 class AutofillChangeProcessor : public ChangeProcessor, | 42 class AutofillChangeProcessor : public ChangeProcessor, |
| 37 public NotificationObserver { | 43 public NotificationObserver { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // in CommitChangesFromSyncModel. | 136 // in CommitChangesFromSyncModel. |
| 131 struct AutofillChangeRecord; | 137 struct AutofillChangeRecord; |
| 132 std::vector<AutofillChangeRecord> autofill_changes_; | 138 std::vector<AutofillChangeRecord> autofill_changes_; |
| 133 | 139 |
| 134 DISALLOW_COPY_AND_ASSIGN(AutofillChangeProcessor); | 140 DISALLOW_COPY_AND_ASSIGN(AutofillChangeProcessor); |
| 135 }; | 141 }; |
| 136 | 142 |
| 137 } // namespace browser_sync | 143 } // namespace browser_sync |
| 138 | 144 |
| 139 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ | 145 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ |
| OLD | NEW |