| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual void DisableForUser(); | 149 virtual void DisableForUser(); |
| 150 | 150 |
| 151 // Whether sync is enabled by user or not. | 151 // Whether sync is enabled by user or not. |
| 152 virtual bool HasSyncSetupCompleted() const; | 152 virtual bool HasSyncSetupCompleted() const; |
| 153 void SetSyncSetupCompleted(); | 153 void SetSyncSetupCompleted(); |
| 154 | 154 |
| 155 // SyncFrontend implementation. | 155 // SyncFrontend implementation. |
| 156 virtual void OnBackendInitialized(); | 156 virtual void OnBackendInitialized(); |
| 157 virtual void OnSyncCycleCompleted(); | 157 virtual void OnSyncCycleCompleted(); |
| 158 virtual void OnAuthError(); | 158 virtual void OnAuthError(); |
| 159 virtual void OnStopSyncingPermanently(); |
| 159 | 160 |
| 160 // Called when a user enters credentials through UI. | 161 // Called when a user enters credentials through UI. |
| 161 virtual void OnUserSubmittedAuth(const std::string& username, | 162 virtual void OnUserSubmittedAuth(const std::string& username, |
| 162 const std::string& password, | 163 const std::string& password, |
| 163 const std::string& captcha); | 164 const std::string& captcha); |
| 164 | 165 |
| 165 // Called when a user chooses which data types to sync as part of the sync | 166 // Called when a user chooses which data types to sync as part of the sync |
| 166 // setup wizard. |sync_everything| represents whether they chose the | 167 // setup wizard. |sync_everything| represents whether they chose the |
| 167 // "keep everything synced" option; if true, |chosen_types| will be ignored | 168 // "keep everything synced" option; if true, |chosen_types| will be ignored |
| 168 // and all data types will be synced. |sync_everything| means "sync all | 169 // and all data types will be synced. |sync_everything| means "sync all |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 443 |
| 443 NotificationRegistrar registrar_; | 444 NotificationRegistrar registrar_; |
| 444 | 445 |
| 445 ScopedRunnableMethodFactory<ProfileSyncService> | 446 ScopedRunnableMethodFactory<ProfileSyncService> |
| 446 scoped_runnable_method_factory_; | 447 scoped_runnable_method_factory_; |
| 447 | 448 |
| 448 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 449 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 449 }; | 450 }; |
| 450 | 451 |
| 451 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 452 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |