esim_mojo_utils.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright 2020 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_SERVICES_CELLULAR_SETUP_ESIM_MOJO_UTILS_H_
  5. #define ASH_SERVICES_CELLULAR_SETUP_ESIM_MOJO_UTILS_H_
  6. #include "ash/services/cellular_setup/public/mojom/esim_manager.mojom-forward.h"
  7. #include "chromeos/ash/components/dbus/hermes/hermes_response_status.h"
  8. #include "chromeos/ash/components/network/cellular_esim_profile.h"
  9. #include "third_party/cros_system_api/dbus/hermes/dbus-constants.h"
  10. namespace ash::cellular_setup {
  11. // Returns the mojo ProfileInstallResult status corresponding to
  12. // HermesResponseStatus from D-Bus clients.
  13. mojom::ProfileInstallResult InstallResultFromStatus(
  14. HermesResponseStatus status);
  15. // Returns mojo ProfileState corresponding to state CellularESimProfile object.
  16. mojom::ProfileState ProfileStateToMojo(CellularESimProfile::State state);
  17. // Returns mojo ESimOperationResult corresponding to response status
  18. // from D-Bus clients.
  19. mojom::ESimOperationResult OperationResultFromStatus(
  20. HermesResponseStatus status);
  21. } // namespace ash::cellular_setup
  22. #endif // ASH_SERVICES_CELLULAR_SETUP_ESIM_MOJO_UTILS_H_