in_process_instance.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 CHROMEOS_SERVICES_NETWORK_CONFIG_IN_PROCESS_INSTANCE_H_
  5. #define CHROMEOS_SERVICES_NETWORK_CONFIG_IN_PROCESS_INSTANCE_H_
  6. #include "base/component_export.h"
  7. #include "chromeos/services/network_config/public/mojom/cros_network_config.mojom.h"
  8. #include "mojo/public/cpp/bindings/pending_receiver.h"
  9. namespace chromeos {
  10. namespace network_config {
  11. COMPONENT_EXPORT(IN_PROCESS_NETWORK_CONFIG)
  12. void BindToInProcessInstance(
  13. mojo::PendingReceiver<mojom::CrosNetworkConfig> receiver);
  14. COMPONENT_EXPORT(IN_PROCESS_NETWORK_CONFIG)
  15. void OverrideInProcessInstanceForTesting(
  16. mojom::CrosNetworkConfig* network_config);
  17. } // namespace network_config
  18. } // namespace chromeos
  19. // TODO(https://crbug.com/1164001): remove when moved to ash.
  20. namespace ash {
  21. namespace network_config {
  22. using ::chromeos::network_config::BindToInProcessInstance;
  23. } // namespace network_config
  24. } // namespace ash
  25. #endif // CHROMEOS_SERVICES_NETWORK_CONFIG_IN_PROCESS_INSTANCE_H_