910e62b5创建于 1月15日历史提交
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module network.mojom;

// Represents AddressSpace from the "Local Network Access" spec. The ordering
// is important, as it's used to determine whether a request is a Local Network
// Access requests.  See: https://wicg.github.io/local-network-access/
enum IPAddressSpace {
  kLoopback, // contains the loopback device only.

  kLocal,    // contains addresses that have meaning only within the current
             // network. In other words, addresses whose target differs based
             // on network position.

  kPublic,   // contains all other addresses. In other words, addresses whose
             // target is the same for all devices globally on the IP network.

  kUnknown,  // For security checks, "unknown" will be treated as "public", as
             // that's the lowest-privilege value.
};