OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_ |
| 7 |
| 8 #include "services/ui/public/interfaces/window_tree_host.mojom.h" |
| 9 #include "services/ui/ws/user_id.h" |
| 10 |
| 11 namespace ui { |
| 12 namespace ws { |
| 13 |
| 14 class WindowServer; |
| 15 |
| 16 class WindowTreeHostFactoryRegistrar |
| 17 : public mojom::WindowTreeHostFactoryRegistrar { |
| 18 public: |
| 19 WindowTreeHostFactoryRegistrar(WindowServer* window_server, |
| 20 const UserId& user_id); |
| 21 ~WindowTreeHostFactoryRegistrar() override; |
| 22 |
| 23 const UserId& user_id() const { return user_id_; } |
| 24 |
| 25 private: |
| 26 void Register(mojom::WindowTreeHostFactoryRequest, |
| 27 mojom::WindowTreeRequest tree_request, |
| 28 mojom::WindowTreeClientPtr tree_client) override; |
| 29 |
| 30 WindowServer* window_server_; |
| 31 const UserId user_id_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostFactoryRegistrar); |
| 34 }; |
| 35 |
| 36 } // namespace ws |
| 37 } // namespace ui |
| 38 |
| 39 #endif // SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_ |
OLD | NEW |