OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MUS_WS_USER_ID_TRACKER_OBSERVER_H_ | 5 #ifndef COMPONENTS_MUS_WS_USER_ID_TRACKER_OBSERVER_H_ |
6 #define COMPONENTS_MUS_WS_USER_ID_TRACKER_OBSERVER_H_ | 6 #define COMPONENTS_MUS_WS_USER_ID_TRACKER_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "components/mus/ws/user_id.h" | 10 #include "components/mus/ws/user_id.h" |
11 | 11 |
12 namespace mus { | 12 namespace mus { |
13 namespace ws { | 13 namespace ws { |
14 | 14 |
15 class UserIdTrackerObserver { | 15 class UserIdTrackerObserver { |
16 public: | 16 public: |
17 virtual void OnActiveUserIdChanged(UserId id) = 0; | 17 virtual void OnActiveUserIdChanged(const UserId& id) = 0; |
18 virtual void OnUserIdAdded(UserId id) = 0; | 18 virtual void OnUserIdAdded(const UserId& id) = 0; |
19 virtual void OnUserIdRemoved(UserId id) = 0; | 19 virtual void OnUserIdRemoved(const UserId& id) = 0; |
20 | 20 |
21 protected: | 21 protected: |
22 virtual ~UserIdTrackerObserver() {} | 22 virtual ~UserIdTrackerObserver() {} |
23 }; | 23 }; |
24 | 24 |
25 } // namespace ws | 25 } // namespace ws |
26 } // namespace mus | 26 } // namespace mus |
27 | 27 |
28 #endif // COMPONENTS_MUS_WS_USER_ID_TRACKER_OBSERVER_H_ | 28 #endif // COMPONENTS_MUS_WS_USER_ID_TRACKER_OBSERVER_H_ |
OLD | NEW |