// 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_TEST_TRUST_TOKEN_REQUEST_HANDLER_H_ #define SERVICES_NETWORK_TEST_TRUST_TOKEN_REQUEST_HANDLER_H_ #include <optional> #include <set> #include <string> #include <string_view> #include "base/synchronization/lock.h" #include "base/time/time.h" #include "net/http/http_request_headers.h" #include "services/network/public/mojom/trust_tokens.mojom.h" #include "services/network/trust_tokens/types.h" #include "url/gurl.h" namespace network { namespace test { struct TrustTokenSignedRequest { … }; // TrustTokenRequestHandler encapsulates server-side Trust Tokens issuance and // redemption logic and implements some integrity and correctness checks for // requests subsequently signed with keys bound to token redemptions. // // It's thread-safe so that the methods can be called by test code directly and // by net::EmbeddedTestServer handlers. class TrustTokenRequestHandler { … }; } // namespace test } // namespace network #endif // SERVICES_NETWORK_TEST_TRUST_TOKEN_REQUEST_HANDLER_H_