Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / components / view_manager / public / cpp / view_manager_client_factory.h
blob50d9cfc3d29dba73f4d9bfb5087e025800af806c
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_
8 #include "components/view_manager/public/interfaces/view_manager.mojom.h"
9 #include "mojo/application/public/cpp/interface_factory.h"
11 namespace mojo {
13 class ViewManagerDelegate;
14 class Shell;
16 // Add an instance of this class to an incoming connection to allow it to
17 // instantiate ViewManagerClient implementations in response to
18 // ViewManagerClient requests.
19 class ViewManagerClientFactory : public InterfaceFactory<ViewManagerClient> {
20 public:
21 ViewManagerClientFactory(Shell* shell, ViewManagerDelegate* delegate);
22 ~ViewManagerClientFactory() override;
24 // InterfaceFactory<ViewManagerClient> implementation.
25 void Create(ApplicationConnection* connection,
26 InterfaceRequest<ViewManagerClient> request) override;
28 private:
29 Shell* shell_;
30 ViewManagerDelegate* delegate_;
33 } // namespace mojo
35 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_