| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 // Whether sync is enabled by user or not. | 210 // Whether sync is enabled by user or not. |
| 211 virtual bool HasSyncSetupCompleted() const; | 211 virtual bool HasSyncSetupCompleted() const; |
| 212 virtual void SetSyncSetupCompleted(); | 212 virtual void SetSyncSetupCompleted(); |
| 213 | 213 |
| 214 // SyncFrontend implementation. | 214 // SyncFrontend implementation. |
| 215 virtual void OnBackendInitialized( | 215 virtual void OnBackendInitialized( |
| 216 const browser_sync::WeakHandle<browser_sync::JsBackend>& js_backend, | 216 const browser_sync::WeakHandle<browser_sync::JsBackend>& js_backend, |
| 217 bool success) OVERRIDE; | 217 bool success) OVERRIDE; |
| 218 virtual void OnSyncCycleCompleted() OVERRIDE; | 218 virtual void OnSyncCycleCompleted() OVERRIDE; |
| 219 virtual void OnSyncConfigureRetry() OVERRIDE; |
| 219 virtual void OnAuthError() OVERRIDE; | 220 virtual void OnAuthError() OVERRIDE; |
| 220 virtual void OnStopSyncingPermanently() OVERRIDE; | 221 virtual void OnStopSyncingPermanently() OVERRIDE; |
| 221 virtual void OnClearServerDataFailed() OVERRIDE; | 222 virtual void OnClearServerDataFailed() OVERRIDE; |
| 222 virtual void OnClearServerDataSucceeded() OVERRIDE; | 223 virtual void OnClearServerDataSucceeded() OVERRIDE; |
| 223 virtual void OnPassphraseRequired( | 224 virtual void OnPassphraseRequired( |
| 224 sync_api::PassphraseRequiredReason reason, | 225 sync_api::PassphraseRequiredReason reason, |
| 225 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 226 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
| 226 virtual void OnPassphraseAccepted() OVERRIDE; | 227 virtual void OnPassphraseAccepted() OVERRIDE; |
| 227 virtual void OnEncryptedTypesChanged( | 228 virtual void OnEncryptedTypesChanged( |
| 228 syncable::ModelTypeSet encrypted_types, | 229 syncable::ModelTypeSet encrypted_types, |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 backend_unrecoverable_error_handler_; | 714 backend_unrecoverable_error_handler_; |
| 714 | 715 |
| 715 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 716 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 716 }; | 717 }; |
| 717 | 718 |
| 718 bool ShouldShowActionOnUI( | 719 bool ShouldShowActionOnUI( |
| 719 const browser_sync::SyncProtocolError& error); | 720 const browser_sync::SyncProtocolError& error); |
| 720 | 721 |
| 721 | 722 |
| 722 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 723 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |