| 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_MOJO_INTERFACE_FACTORY_H_ | |
| 6 #define ASH_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 service_manager { | |
| 17 class InterfaceRegistry; | |
| 18 } | |
| 19 | |
| 20 namespace ash { | |
| 21 | |
| 22 namespace mojo_interface_factory { | |
| 23 | |
| 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 ASH_EXPORT void RegisterInterfaces( | |
| 28 service_manager::InterfaceRegistry* registry, | |
| 29 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); | |
| 30 | |
| 31 } // namespace mojo_interface_factory | |
| 32 | |
| 33 } // namespace ash | |
| 34 | |
| 35 #endif // ASH_MOJO_INTERFACE_FACTORY_H_ | |
| OLD | NEW |