Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Ken Rockot | 5307777 | 2019-06-26 21:50:32 | [diff] [blame] | 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 CONTENT_UTILITY_SERVICES_H_ |
| 6 | #define CONTENT_UTILITY_SERVICES_H_ |
| 7 | |
Yoichi Osato | bbdfbcdc | 2022-12-12 16:50:35 | [diff] [blame] | 8 | #include "content/common/content_export.h" |
| 9 | #include "services/service_manager/public/cpp/binder_registry.h" |
| 10 | |
Ken Rockot | c18bc46 | 2020-10-28 19:35:45 | [diff] [blame] | 11 | namespace mojo { |
| 12 | class ServiceFactory; |
| 13 | } |
Ken Rockot | 5307777 | 2019-06-26 21:50:32 | [diff] [blame] | 14 | |
| 15 | namespace content { |
Yoichi Osato | bbdfbcdc | 2022-12-12 16:50:35 | [diff] [blame] | 16 | using NetworkBinderCreationCallback = |
| 17 | base::OnceCallback<void(service_manager::BinderRegistry*)>; |
| 18 | CONTENT_EXPORT void SetNetworkBinderCreationCallbackForTesting( // IN-TEST |
| 19 | NetworkBinderCreationCallback callback); |
Ken Rockot | 5307777 | 2019-06-26 21:50:32 | [diff] [blame] | 20 | |
Ken Rockot | c18bc46 | 2020-10-28 19:35:45 | [diff] [blame] | 21 | void RegisterIOThreadServices(mojo::ServiceFactory& services); |
| 22 | void RegisterMainThreadServices(mojo::ServiceFactory& services); |
Ken Rockot | 5307777 | 2019-06-26 21:50:32 | [diff] [blame] | 23 | |
| 24 | } // namespace content |
| 25 | |
| 26 | #endif // CONTENT_UTILITY_SERVICES_H_ |