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

Side by Side Diff: chrome/browser/supervised_user/legacy/supervised_user_sync_service_observer.h

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SYNC_SERVICE_OBSER VER_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SYNC_SERVICE_OBSER VER_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SYNC_SERVICE_OBSER VER_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SYNC_SERVICE_OBSER VER_H_
7 7
8 namespace user_manager {
9 class UserID;
10 }
11
8 class SupervisedUserSyncServiceObserver { 12 class SupervisedUserSyncServiceObserver {
9 public: 13 public:
10 // Called when the Sync server has acknowledged a newly 14 // Called when the Sync server has acknowledged a newly
11 // created supervised user. 15 // created supervised user.
12 virtual void OnSupervisedUserAcknowledged( 16 virtual void OnSupervisedUserAcknowledged(
13 const std::string& supervised_user_id) = 0; 17 const user_manager::UserID& supervised_user_id) = 0;
14 18
15 virtual void OnSupervisedUsersSyncingStopped() = 0; 19 virtual void OnSupervisedUsersSyncingStopped() = 0;
16 20
17 virtual void OnSupervisedUsersChanged() = 0; 21 virtual void OnSupervisedUsersChanged() = 0;
18 22
19 protected: 23 protected:
20 virtual ~SupervisedUserSyncServiceObserver() {} 24 virtual ~SupervisedUserSyncServiceObserver() {}
21 }; 25 };
22 26
23 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SYNC_SERVICE_OB SERVER_H_ 27 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SYNC_SERVICE_OB SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698