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

Side by Side Diff: chrome/browser/managed_mode/managed_user_sync_service.h

Issue 23653007: Avatar syncing for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: strings Created 7 years, 3 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698