bluetooth_config_service.h 1.0 KB

123456789101112131415161718192021222324252627
  1. // Copyright 2021 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 ASH_PUBLIC_CPP_BLUETOOTH_CONFIG_SERVICE_H_
  5. #define ASH_PUBLIC_CPP_BLUETOOTH_CONFIG_SERVICE_H_
  6. #include "ash/public/cpp/ash_public_export.h"
  7. #include "chromeos/services/bluetooth_config/public/mojom/cros_bluetooth_config.mojom.h"
  8. #include "mojo/public/cpp/bindings/pending_receiver.h"
  9. namespace ash {
  10. // Binds |pending_receiver| to CrosBluetoothConfig. Clients should use this
  11. // function as the main entrypoint to the Mojo API.
  12. //
  13. // Internally, this function delegates to an implementation in the browser
  14. // process. We declare this function in //ash to ensure that clients do not have
  15. // any direct dependencies on the implementation.
  16. ASH_PUBLIC_EXPORT void GetBluetoothConfigService(
  17. mojo::PendingReceiver<
  18. chromeos::bluetooth_config::mojom::CrosBluetoothConfig>
  19. pending_receiver);
  20. } // namespace ash
  21. #endif // ASH_PUBLIC_CPP_BLUETOOTH_CONFIG_SERVICE_H_