OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 ASH_COMMON_MOJO_INTERFACE_FACTORY_H_ | |
6 #define ASH_COMMON_MOJO_INTERFACE_FACTORY_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "base/macros.h" | |
10 #include "base/memory/ref_counted.h" | |
11 | |
12 namespace base { | |
13 class SingleThreadTaskRunner; | |
14 } | |
15 | |
16 namespace shell { | |
17 class InterfaceRegistry; | |
18 } | |
19 | |
20 namespace ash { | |
21 | |
22 class ASH_EXPORT MojoInterfaceFactory { | |
James Cook
2016/09/30 21:18:26
I could also add namespace mojo_interface_factory
msw
2016/09/30 23:26:48
This seems fine to me.
| |
23 public: | |
24 // Registers all mojo services provided by ash. May be called on IO thread | |
25 // (when running ash in-process in chrome) or on the main thread (when running | |
26 // in mash). | |
27 static void RegisterInterfaces( | |
28 shell::InterfaceRegistry* registry, | |
29 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); | |
30 | |
31 private: | |
32 DISALLOW_IMPLICIT_CONSTRUCTORS(MojoInterfaceFactory); | |
33 }; | |
34 | |
35 } // namespace ash | |
36 | |
37 #endif // ASH_COMMON_MOJO_INTERFACE_FACTORY_H_ | |
OLD | NEW |