OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 const NotificationSource& source, | 111 const NotificationSource& source, |
112 const NotificationDetails& details); | 112 const NotificationDetails& details); |
113 | 113 |
114 // SyncFrontend implementation. | 114 // SyncFrontend implementation. |
115 virtual void OnBackendInitialized(); | 115 virtual void OnBackendInitialized(); |
116 virtual void OnSyncCycleCompleted(); | 116 virtual void OnSyncCycleCompleted(); |
117 virtual void OnAuthError(); | 117 virtual void OnAuthError(); |
118 | 118 |
119 // Called when a user enters credentials through UI. | 119 // Called when a user enters credentials through UI. |
120 virtual void OnUserSubmittedAuth(const std::string& username, | 120 virtual void OnUserSubmittedAuth(const std::string& username, |
121 const std::string& password); | 121 const std::string& password, |
| 122 const std::string& captcha); |
122 | 123 |
123 // Called when a user decides whether to merge and sync or abort. | 124 // Called when a user decides whether to merge and sync or abort. |
124 virtual void OnUserAcceptedMergeAndSync(); | 125 virtual void OnUserAcceptedMergeAndSync(); |
125 | 126 |
126 // Called when a user cancels any setup dialog (login, merge and sync, etc). | 127 // Called when a user cancels any setup dialog (login, merge and sync, etc). |
127 virtual void OnUserCancelledDialog(); | 128 virtual void OnUserCancelledDialog(); |
128 | 129 |
129 // Get various information for displaying in the user interface. | 130 // Get various information for displaying in the user interface. |
130 browser_sync::SyncBackendHost::StatusSummary QuerySyncStatusSummary(); | 131 browser_sync::SyncBackendHost::StatusSummary QuerySyncStatusSummary(); |
131 browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus(); | 132 browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus(); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // occurred during syncer operation. This value should be checked before | 306 // occurred during syncer operation. This value should be checked before |
306 // doing any work that might corrupt things further. | 307 // doing any work that might corrupt things further. |
307 bool unrecoverable_error_detected_; | 308 bool unrecoverable_error_detected_; |
308 | 309 |
309 ObserverList<Observer> observers_; | 310 ObserverList<Observer> observers_; |
310 | 311 |
311 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 312 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
312 }; | 313 }; |
313 | 314 |
314 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 315 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |