networking_attributes.mojom 928 B

1234567891011121314151617181920212223242526272829303132
  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. module crosapi.mojom;
  5. import "services/network/public/mojom/ip_address.mojom";
  6. [Stable]
  7. struct NetworkDetails {
  8. string mac_address@0;
  9. network.mojom.IPAddress? ipv4_address@1;
  10. network.mojom.IPAddress? ipv6_address@2;
  11. };
  12. [Stable]
  13. union GetNetworkDetailsResult {
  14. // Implies failure.
  15. string error_message;
  16. // Implies success.
  17. NetworkDetails network_details;
  18. };
  19. // This API provides Lacros with access to networking attributes. These methods
  20. // will all return an error if the user is not affiliated with the device, which
  21. // is an enterprise policy concept.
  22. [Stable, Uuid="1000f6ee-b7d0-4a09-8452-f3418b5e6826"]
  23. interface NetworkingAttributes {
  24. // Fetches the network's addresses.
  25. GetNetworkDetails@0() => (GetNetworkDetailsResult result);
  26. };