[go: nahoru, domu]

blob: fbc64090d2b5dc0107ab51ec96f9d28db366ddab [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_NETWORK_TRUST_TOKENS_OPERATING_SYSTEM_MATCHING_H_
#define SERVICES_NETWORK_TRUST_TOKENS_OPERATING_SYSTEM_MATCHING_H_
#include "base/callback.h"
#include "services/network/public/mojom/trust_tokens.mojom.h"
namespace network {
// Returns whether the given Os value corresponds to the operating system on
// which this code is built.
//
// This information allows Trust Tokens logic to decide whether it should try to
// execute certain operations locally, by comparing the current operating system
// to an issuer-provided collection of operating systems on which to attempt
// executing operations locally.
bool IsCurrentOperatingSystem(mojom::TrustTokenKeyCommitmentResult::Os os);
} // namespace network
#endif // SERVICES_NETWORK_TRUST_TOKENS_OPERATING_SYSTEM_MATCHING_H_