Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: mojo/services/public/cpp/view_manager/view_manager_client_factory.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
7
8 #include "mojo/public/cpp/application/interface_factory.h"
9 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
10
11 namespace mojo {
12 namespace view_manager {
13
14 class ViewManagerDelegate;
15
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 explicit ViewManagerClientFactory(ViewManagerDelegate* delegate);
22 virtual ~ViewManagerClientFactory();
23
24 // InterfaceFactory<ViewManagerClient> implementation.
25 virtual void Create(ApplicationConnection* connection,
26 InterfaceRequest<ViewManagerClient> request)
27 MOJO_OVERRIDE;
28
29 private:
30 ViewManagerDelegate* delegate_;
31 };
32
33 } // namespace view_manager
34 } // namespace mojo
35
36 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/view_manager.h ('k') | mojo/services/surfaces/surfaces_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698