// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_EXTRAS_SHARED_DICTIONARY_SHARED_DICTIONARY_USAGE_INFO_H_ #define NET_EXTRAS_SHARED_DICTIONARY_SHARED_DICTIONARY_USAGE_INFO_H_ #include "base/component_export.h" #include "net/shared_dictionary/shared_dictionary_isolation_key.h" namespace net { struct COMPONENT_EXPORT(NET_SHARED_DICTIONARY) SharedDictionaryUsageInfo { bool operator==(const SharedDictionaryUsageInfo& other) const { return std::tie(isolation_key, total_size_bytes) == std::tie(other.isolation_key, other.total_size_bytes); } bool operator!=(const SharedDictionaryUsageInfo& other) const { return !(*this == other); } SharedDictionaryIsolationKey isolation_key; uint64_t total_size_bytes = 0; }; } // namespace net #endif // NET_EXTRAS_SHARED_DICTIONARY_SHARED_DICTIONARY_USAGE_INFO_H_