| 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_H_ | 5 #ifndef SERVICES_UI_WS_USER_ID_TRACKER_H_ |
| 6 #define COMPONENTS_MUS_WS_USER_ID_TRACKER_H_ | 6 #define SERVICES_UI_WS_USER_ID_TRACKER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "components/mus/public/interfaces/user_access_manager.mojom.h" | |
| 15 #include "components/mus/ws/user_id.h" | |
| 16 #include "mojo/public/cpp/bindings/binding_set.h" | 14 #include "mojo/public/cpp/bindings/binding_set.h" |
| 15 #include "services/ui/public/interfaces/user_access_manager.mojom.h" |
| 16 #include "services/ui/ws/user_id.h" |
| 17 | 17 |
| 18 namespace mus { | 18 namespace mus { |
| 19 namespace ws { | 19 namespace ws { |
| 20 | 20 |
| 21 class UserIdTrackerObserver; | 21 class UserIdTrackerObserver; |
| 22 | 22 |
| 23 // Tracks the set of known/valid user ids. | 23 // Tracks the set of known/valid user ids. |
| 24 class UserIdTracker : public mojom::UserAccessManager { | 24 class UserIdTracker : public mojom::UserAccessManager { |
| 25 public: | 25 public: |
| 26 UserIdTracker(); | 26 UserIdTracker(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 52 UserId active_id_; | 52 UserId active_id_; |
| 53 | 53 |
| 54 mojo::BindingSet<mojom::UserAccessManager> bindings_; | 54 mojo::BindingSet<mojom::UserAccessManager> bindings_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(UserIdTracker); | 56 DISALLOW_COPY_AND_ASSIGN(UserIdTracker); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace ws | 59 } // namespace ws |
| 60 } // namespace mus | 60 } // namespace mus |
| 61 | 61 |
| 62 #endif // COMPONENTS_MUS_WS_USER_ID_TRACKER_H_ | 62 #endif // SERVICES_UI_WS_USER_ID_TRACKER_H_ |
| OLD | NEW |