Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 // Whether sync is enabled by user or not. 253 // Whether sync is enabled by user or not.
254 virtual bool HasSyncSetupCompleted() const; 254 virtual bool HasSyncSetupCompleted() const;
255 virtual void SetSyncSetupCompleted(); 255 virtual void SetSyncSetupCompleted();
256 256
257 // syncer::SyncNotifier implementation (via SyncFrontend). 257 // syncer::SyncNotifier implementation (via SyncFrontend).
258 virtual void OnNotificationsEnabled() OVERRIDE; 258 virtual void OnNotificationsEnabled() OVERRIDE;
259 virtual void OnNotificationsDisabled( 259 virtual void OnNotificationsDisabled(
260 syncer::NotificationsDisabledReason reason) OVERRIDE; 260 syncer::NotificationsDisabledReason reason) OVERRIDE;
261 virtual void OnIncomingNotification( 261 virtual void OnIncomingNotification(
262 const syncer::ObjectIdPayloadMap& id_payloads, 262 const syncer::ObjectIdStateMap& id_state_map,
263 syncer::IncomingNotificationSource source) OVERRIDE; 263 syncer::IncomingNotificationSource source) OVERRIDE;
264 264
265 // SyncFrontend implementation. 265 // SyncFrontend implementation.
266 virtual void OnBackendInitialized( 266 virtual void OnBackendInitialized(
267 const syncer::WeakHandle<syncer::JsBackend>& js_backend, 267 const syncer::WeakHandle<syncer::JsBackend>& js_backend,
268 bool success) OVERRIDE; 268 bool success) OVERRIDE;
269 virtual void OnSyncCycleCompleted() OVERRIDE; 269 virtual void OnSyncCycleCompleted() OVERRIDE;
270 virtual void OnSyncConfigureRetry() OVERRIDE; 270 virtual void OnSyncConfigureRetry() OVERRIDE;
271 virtual void OnConnectionStatusChange( 271 virtual void OnConnectionStatusChange(
272 syncer::ConnectionStatus status) OVERRIDE; 272 syncer::ConnectionStatus status) OVERRIDE;
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 syncer::SyncNotifierRegistrar notifier_registrar_; 880 syncer::SyncNotifierRegistrar notifier_registrar_;
881 881
882 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 882 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
883 }; 883 };
884 884
885 bool ShouldShowActionOnUI( 885 bool ShouldShowActionOnUI(
886 const syncer::SyncProtocolError& error); 886 const syncer::SyncProtocolError& error);
887 887
888 888
889 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 889 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698