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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 // Whether sync is enabled by user or not. | 257 // Whether sync is enabled by user or not. |
258 virtual bool HasSyncSetupCompleted() const; | 258 virtual bool HasSyncSetupCompleted() const; |
259 virtual void SetSyncSetupCompleted(); | 259 virtual void SetSyncSetupCompleted(); |
260 | 260 |
261 // syncer::SyncNotifier implementation (via SyncFrontend). | 261 // syncer::SyncNotifier implementation (via SyncFrontend). |
262 virtual void OnNotificationsEnabled() OVERRIDE; | 262 virtual void OnNotificationsEnabled() OVERRIDE; |
263 virtual void OnNotificationsDisabled( | 263 virtual void OnNotificationsDisabled( |
264 syncer::NotificationsDisabledReason reason) OVERRIDE; | 264 syncer::NotificationsDisabledReason reason) OVERRIDE; |
265 virtual void OnIncomingNotification( | 265 virtual void OnIncomingNotification( |
266 const syncer::ObjectIdPayloadMap& id_payloads, | 266 const syncer::ObjectIdStateMap& id_state_map, |
267 syncer::IncomingNotificationSource source) OVERRIDE; | 267 syncer::IncomingNotificationSource source) OVERRIDE; |
268 | 268 |
269 // SyncFrontend implementation. | 269 // SyncFrontend implementation. |
270 virtual void OnBackendInitialized( | 270 virtual void OnBackendInitialized( |
271 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 271 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
272 bool success) OVERRIDE; | 272 bool success) OVERRIDE; |
273 virtual void OnSyncCycleCompleted() OVERRIDE; | 273 virtual void OnSyncCycleCompleted() OVERRIDE; |
274 virtual void OnSyncConfigureRetry() OVERRIDE; | 274 virtual void OnSyncConfigureRetry() OVERRIDE; |
275 virtual void OnConnectionStatusChange( | 275 virtual void OnConnectionStatusChange( |
276 syncer::ConnectionStatus status) OVERRIDE; | 276 syncer::ConnectionStatus status) OVERRIDE; |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 syncer::SyncNotifierRegistrar notifier_registrar_; | 894 syncer::SyncNotifierRegistrar notifier_registrar_; |
895 | 895 |
896 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 896 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
897 }; | 897 }; |
898 | 898 |
899 bool ShouldShowActionOnUI( | 899 bool ShouldShowActionOnUI( |
900 const syncer::SyncProtocolError& error); | 900 const syncer::SyncProtocolError& error); |
901 | 901 |
902 | 902 |
903 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 903 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |