audio_config_service.h 1007 B

1234567891011121314151617181920212223242526
  1. // Copyright 2022 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_AUDIO_CONFIG_SERVICE_H_
  5. #define ASH_PUBLIC_CPP_AUDIO_CONFIG_SERVICE_H_
  6. #include "ash/public/cpp/ash_public_export.h"
  7. #include "chromeos/ash/components/audio/public/mojom/cros_audio_config.mojom.h"
  8. #include "mojo/public/cpp/bindings/pending_receiver.h"
  9. namespace ash {
  10. // Binds |pending_receiver| to CrosAudioConfig. 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 GetAudioConfigService(
  17. mojo::PendingReceiver<ash::audio_config::mojom::CrosAudioConfig>
  18. pending_receiver);
  19. } // namespace ash
  20. #endif // ASH_PUBLIC_CPP_AUDIO_CONFIG_SERVICE_H_