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

Side by Side Diff: components/sync/driver/sync_service_observer.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « components/sync/driver/sync_service.cc ('k') | components/sync/driver/sync_service_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_OBSERVER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_OBSERVER_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_OBSERVER_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_OBSERVER_H_
7 7
8 namespace syncer { 8 namespace sync_driver {
9 9
10 // Various UI components such as the New Tab page can be driven by observing 10 // Various UI components such as the New Tab page can be driven by observing
11 // the SyncService through this interface. 11 // the SyncService through this interface.
12 class SyncServiceObserver { 12 class SyncServiceObserver {
13 public: 13 public:
14 // When one of the following events occurs, OnStateChanged() is called. 14 // When one of the following events occurs, OnStateChanged() is called.
15 // Observers should query the service to determine what happened. 15 // Observers should query the service to determine what happened.
16 // - We initialized successfully. 16 // - We initialized successfully.
17 // - The sync servers are unavailable at this time. 17 // - The sync servers are unavailable at this time.
18 // - Credentials are now in flight for authentication. 18 // - Credentials are now in flight for authentication.
(...skipping 11 matching lines...) Expand all
30 // process. 30 // process.
31 virtual void OnSyncConfigurationCompleted() {} 31 virtual void OnSyncConfigurationCompleted() {}
32 32
33 // Called when a foreign session has been updated. 33 // Called when a foreign session has been updated.
34 virtual void OnForeignSessionUpdated() {} 34 virtual void OnForeignSessionUpdated() {}
35 35
36 protected: 36 protected:
37 virtual ~SyncServiceObserver() {} 37 virtual ~SyncServiceObserver() {}
38 }; 38 };
39 39
40 } // namespace syncer 40 } // namespace sync_driver
41 41
42 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_OBSERVER_H_ 42 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/sync/driver/sync_service.cc ('k') | components/sync/driver/sync_service_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698