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