OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_CHANGE_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ |
7 | 7 |
8 #include "chrome/browser/sync/glue/change_processor.h" | 8 #include "chrome/browser/sync/glue/change_processor.h" |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "chrome/browser/sync/glue/data_type_error_handler.h" | 12 #include "chrome/browser/sync/glue/data_type_error_handler.h" |
13 #include "chrome/browser/sync/glue/password_model_associator.h" | 13 #include "chrome/browser/sync/glue/password_model_associator.h" |
14 #include "chrome/browser/sync/glue/sync_backend_host.h" | 14 #include "chrome/browser/sync/glue/sync_backend_host.h" |
15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
17 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
18 | 18 |
19 class PasswordStore; | 19 class PasswordStore; |
| 20 |
| 21 namespace base { |
20 class MessageLoop; | 22 class MessageLoop; |
| 23 } |
21 | 24 |
22 namespace browser_sync { | 25 namespace browser_sync { |
23 | 26 |
24 class DataTypeErrorHandler; | 27 class DataTypeErrorHandler; |
25 | 28 |
26 // This class is responsible for taking changes from the password backend and | 29 // This class is responsible for taking changes from the password backend and |
27 // applying them to the sync API 'syncable' model, and vice versa. All | 30 // applying them to the sync API 'syncable' model, and vice versa. All |
28 // operations and use of this class are from the DB thread on Windows and Linux, | 31 // operations and use of this class are from the DB thread on Windows and Linux, |
29 // or the password thread on Mac. | 32 // or the password thread on Mac. |
30 class PasswordChangeProcessor : public ChangeProcessor, | 33 class PasswordChangeProcessor : public ChangeProcessor, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 PasswordStore* password_store_; | 73 PasswordStore* password_store_; |
71 | 74 |
72 // Buffers used between ApplyChangesFromSyncModel and | 75 // Buffers used between ApplyChangesFromSyncModel and |
73 // CommitChangesFromSyncModel. | 76 // CommitChangesFromSyncModel. |
74 PasswordModelAssociator::PasswordVector new_passwords_; | 77 PasswordModelAssociator::PasswordVector new_passwords_; |
75 PasswordModelAssociator::PasswordVector updated_passwords_; | 78 PasswordModelAssociator::PasswordVector updated_passwords_; |
76 PasswordModelAssociator::PasswordVector deleted_passwords_; | 79 PasswordModelAssociator::PasswordVector deleted_passwords_; |
77 | 80 |
78 content::NotificationRegistrar notification_registrar_; | 81 content::NotificationRegistrar notification_registrar_; |
79 | 82 |
80 MessageLoop* expected_loop_; | 83 base::MessageLoop* expected_loop_; |
81 | 84 |
82 DISALLOW_COPY_AND_ASSIGN(PasswordChangeProcessor); | 85 DISALLOW_COPY_AND_ASSIGN(PasswordChangeProcessor); |
83 }; | 86 }; |
84 | 87 |
85 } // namespace browser_sync | 88 } // namespace browser_sync |
86 | 89 |
87 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ | 90 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ |
OLD | NEW |