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"
13 class ViewManagerDelegate
;
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
> {
21 ViewManagerClientFactory(Shell
* shell
, ViewManagerDelegate
* delegate
);
22 ~ViewManagerClientFactory() override
;
24 // InterfaceFactory<ViewManagerClient> implementation.
25 void Create(ApplicationConnection
* connection
,
26 InterfaceRequest
<ViewManagerClient
> request
) override
;
30 ViewManagerDelegate
* delegate_
;
35 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_