OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGED_MODE_MANAGED_USER_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SYNC_SERVICE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 virtual ~ManagedUserSyncService(); | 25 virtual ~ManagedUserSyncService(); |
26 | 26 |
27 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 27 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
28 | 28 |
29 void AddObserver(ManagedUserSyncServiceObserver* observer); | 29 void AddObserver(ManagedUserSyncServiceObserver* observer); |
30 void RemoveObserver(ManagedUserSyncServiceObserver* observer); | 30 void RemoveObserver(ManagedUserSyncServiceObserver* observer); |
31 | 31 |
32 void AddManagedUser(const std::string& id, | 32 void AddManagedUser(const std::string& id, |
33 const std::string& name, | 33 const std::string& name, |
34 const std::string& master_key); | 34 const std::string& master_key, |
| 35 int avatar_index); |
35 void DeleteManagedUser(const std::string& id); | 36 void DeleteManagedUser(const std::string& id); |
36 | 37 |
37 // BrowserContextKeyedService implementation: | 38 // BrowserContextKeyedService implementation: |
38 virtual void Shutdown() OVERRIDE; | 39 virtual void Shutdown() OVERRIDE; |
39 | 40 |
40 // SyncableService implementation: | 41 // SyncableService implementation: |
41 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( | 42 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( |
42 syncer::ModelType type, | 43 syncer::ModelType type, |
43 const syncer::SyncDataList& initial_sync_data, | 44 const syncer::SyncDataList& initial_sync_data, |
44 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, | 45 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, |
(...skipping 22 matching lines...) Expand all Loading... |
67 | 68 |
68 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 69 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
69 scoped_ptr<syncer::SyncErrorFactory> error_handler_; | 70 scoped_ptr<syncer::SyncErrorFactory> error_handler_; |
70 | 71 |
71 ObserverList<ManagedUserSyncServiceObserver> observers_; | 72 ObserverList<ManagedUserSyncServiceObserver> observers_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(ManagedUserSyncService); | 74 DISALLOW_COPY_AND_ASSIGN(ManagedUserSyncService); |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SYNC_SERVICE_H_ | 77 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SYNC_SERVICE_H_ |
OLD | NEW |