services.h 701 B

12345678910111213141516171819
  1. // Copyright 2019 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. #ifndef CHROME_UTILITY_SERVICES_H_
  5. #define CHROME_UTILITY_SERVICES_H_
  6. namespace mojo {
  7. class ServiceFactory;
  8. }
  9. // Helpers to run out-of-process services in a dedicated utility process. All
  10. // out-of-process services will need to have their implementation hooked up in
  11. // one of these helpers.
  12. void RegisterElevatedMainThreadServices(mojo::ServiceFactory& services);
  13. void RegisterMainThreadServices(mojo::ServiceFactory& services);
  14. void RegisterIOThreadServices(mojo::ServiceFactory& services);
  15. #endif // CHROME_UTILITY_SERVICES_H_