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 |
(...skipping 26 matching lines...) Expand all Loading... |
37 public NotificationObserver { | 37 public NotificationObserver { |
38 public: | 38 public: |
39 AutofillChangeProcessor(AutofillModelAssociator* model_associator, | 39 AutofillChangeProcessor(AutofillModelAssociator* model_associator, |
40 WebDatabase* web_database, | 40 WebDatabase* web_database, |
41 PersonalDataManager* personal_data, | 41 PersonalDataManager* personal_data, |
42 UnrecoverableErrorHandler* error_handler); | 42 UnrecoverableErrorHandler* error_handler); |
43 virtual ~AutofillChangeProcessor(); | 43 virtual ~AutofillChangeProcessor(); |
44 | 44 |
45 // NotificationObserver implementation. | 45 // NotificationObserver implementation. |
46 // WebDataService -> sync_api model change application. | 46 // WebDataService -> sync_api model change application. |
47 virtual void Observe(NotificationType type, | 47 virtual void Observe(int type, |
48 const NotificationSource& source, | 48 const NotificationSource& source, |
49 const NotificationDetails& details); | 49 const NotificationDetails& details); |
50 | 50 |
51 // sync_api model -> WebDataService change application. | 51 // sync_api model -> WebDataService change application. |
52 virtual void ApplyChangesFromSyncModel( | 52 virtual void ApplyChangesFromSyncModel( |
53 const sync_api::BaseTransaction* trans, | 53 const sync_api::BaseTransaction* trans, |
54 const sync_api::SyncManager::ChangeRecord* changes, | 54 const sync_api::SyncManager::ChangeRecord* changes, |
55 int change_count); | 55 int change_count); |
56 | 56 |
57 // Commit any changes from ApplyChangesFromSyncModel buffered in | 57 // Commit any changes from ApplyChangesFromSyncModel buffered in |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // in CommitChangesFromSyncModel. | 130 // in CommitChangesFromSyncModel. |
131 struct AutofillChangeRecord; | 131 struct AutofillChangeRecord; |
132 std::vector<AutofillChangeRecord> autofill_changes_; | 132 std::vector<AutofillChangeRecord> autofill_changes_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(AutofillChangeProcessor); | 134 DISALLOW_COPY_AND_ASSIGN(AutofillChangeProcessor); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace browser_sync | 137 } // namespace browser_sync |
138 | 138 |
139 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ | 139 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_CHANGE_PROCESSOR_H_ |
OLD | NEW |