| Index: services/ui/ws/window_tree_host_factory_registrar.h
|
| diff --git a/services/ui/ws/window_tree_host_factory_registrar.h b/services/ui/ws/window_tree_host_factory_registrar.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ef41af66d37a739fe3ca58fe53f3d0586c1025d4
|
| --- /dev/null
|
| +++ b/services/ui/ws/window_tree_host_factory_registrar.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
|
| +#define SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
|
| +
|
| +#include "services/ui/public/interfaces/window_tree_host.mojom.h"
|
| +#include "services/ui/ws/user_id.h"
|
| +
|
| +namespace ui {
|
| +namespace ws {
|
| +
|
| +class WindowServer;
|
| +
|
| +class WindowTreeHostFactoryRegistrar
|
| + : public mojom::WindowTreeHostFactoryRegistrar {
|
| + public:
|
| + WindowTreeHostFactoryRegistrar(WindowServer* window_server,
|
| + const UserId& user_id);
|
| + ~WindowTreeHostFactoryRegistrar() override;
|
| +
|
| + const UserId& user_id() const { return user_id_; }
|
| +
|
| + private:
|
| + void Register(mojom::WindowTreeHostFactoryRequest,
|
| + mojom::WindowTreeRequest tree_request,
|
| + mojom::WindowTreeClientPtr tree_client) override;
|
| +
|
| + WindowServer* window_server_;
|
| + const UserId user_id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WindowTreeHostFactoryRegistrar);
|
| +};
|
| +
|
| +} // namespace ws
|
| +} // namespace ui
|
| +
|
| +#endif // SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
|
|
|