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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/sync/glue/change_processor.h" | 9 #include "chrome/browser/sync/glue/change_processor.h" |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.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 class MessageLoop; | 20 class MessageLoop; |
21 class NotificationService; | |
22 | 21 |
23 namespace browser_sync { | 22 namespace browser_sync { |
24 | 23 |
25 class UnrecoverableErrorHandler; | 24 class UnrecoverableErrorHandler; |
26 | 25 |
27 // This class is responsible for taking changes from the password backend and | 26 // This class is responsible for taking changes from the password backend and |
28 // applying them to the sync_api 'syncable' model, and vice versa. All | 27 // applying them to the sync_api 'syncable' model, and vice versa. All |
29 // operations and use of this class are from the DB thread on Windows and Linux, | 28 // operations and use of this class are from the DB thread on Windows and Linux, |
30 // or the password thread on Mac. | 29 // or the password thread on Mac. |
31 class PasswordChangeProcessor : public ChangeProcessor, | 30 class PasswordChangeProcessor : public ChangeProcessor, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool observing_; | 80 bool observing_; |
82 | 81 |
83 MessageLoop* expected_loop_; | 82 MessageLoop* expected_loop_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(PasswordChangeProcessor); | 84 DISALLOW_COPY_AND_ASSIGN(PasswordChangeProcessor); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace browser_sync | 87 } // namespace browser_sync |
89 | 88 |
90 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ | 89 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ |
OLD | NEW |