| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_COMMON_MOJO_INTERFACE_FACTORY_H_ | 5 #ifndef ASH_MOJO_INTERFACE_FACTORY_H_ |
| 6 #define ASH_COMMON_MOJO_INTERFACE_FACTORY_H_ | 6 #define ASH_MOJO_INTERFACE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class SingleThreadTaskRunner; | 13 class SingleThreadTaskRunner; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace service_manager { | 16 namespace service_manager { |
| 17 class InterfaceRegistry; | 17 class InterfaceRegistry; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 | 21 |
| 22 namespace mojo_interface_factory { | 22 namespace mojo_interface_factory { |
| 23 | 23 |
| 24 // Registers all mojo services provided by ash. May be called on IO thread | 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 | 25 // (when running ash in-process in chrome) or on the main thread (when running |
| 26 // in mash). | 26 // in mash). |
| 27 ASH_EXPORT void RegisterInterfaces( | 27 ASH_EXPORT void RegisterInterfaces( |
| 28 service_manager::InterfaceRegistry* registry, | 28 service_manager::InterfaceRegistry* registry, |
| 29 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); | 29 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); |
| 30 | 30 |
| 31 } // namespace mojo_interface_factory | 31 } // namespace mojo_interface_factory |
| 32 | 32 |
| 33 } // namespace ash | 33 } // namespace ash |
| 34 | 34 |
| 35 #endif // ASH_COMMON_MOJO_INTERFACE_FACTORY_H_ | 35 #endif // ASH_MOJO_INTERFACE_FACTORY_H_ |
| OLD | NEW |