#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_SHARED_STORAGE_SHARED_STORAGE_UTILS_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_SHARED_STORAGE_SHARED_STORAGE_UTILS_H_
#include <cstdlib>
#include <string_view>
#include "third_party/blink/public/common/common_export.h"
namespace blink {
static constexpr char kSharedStorageModuleScriptNotLoadedErrorMessage[] = …;
static constexpr char kSharedStorageOperationNotFoundErrorMessage[] = …;
static constexpr char
kSharedStorageEmptyOperationDefinitionInstanceErrorMessage[] = …;
static constexpr char kSharedStorageCannotDeserializeDataErrorMessage[] = …;
static constexpr char kSharedStorageEmptyScriptResultErrorMessage[] = …;
static constexpr char kSharedStorageReturnValueToIntErrorMessage[] = …;
static constexpr char kSharedStorageReturnValueOutOfRangeErrorMessage[] = …;
enum class SharedStorageWorkletDestroyedStatus { … };
enum class SharedStorageWorkletErrorType { … };
enum class SharedStorageSelectUrlBudgetStatus { … };
BLINK_COMMON_EXPORT bool IsValidSharedStorageURLsArrayLength(size_t length);
BLINK_COMMON_EXPORT bool IsValidSharedStorageKeyStringLength(size_t length);
BLINK_COMMON_EXPORT bool IsValidSharedStorageValueStringLength(size_t length);
BLINK_COMMON_EXPORT void LogSharedStorageWorkletError(
SharedStorageWorkletErrorType error_type);
BLINK_COMMON_EXPORT void LogSharedStorageSelectURLBudgetStatus(
SharedStorageSelectUrlBudgetStatus budget_status);
BLINK_COMMON_EXPORT bool ShouldDefinePrivateAggregationInSharedStorage();
BLINK_COMMON_EXPORT bool IsValidPrivateAggregationContextId(
std::string_view context_id);
static constexpr int kPrivateAggregationApiContextIdMaxLength = …;
BLINK_COMMON_EXPORT bool IsValidPrivateAggregationFilteringIdMaxBytes(
size_t filtering_id_max_bytes);
static constexpr size_t kPrivateAggregationApiDefaultFilteringIdMaxBytes = …;
static constexpr size_t kPrivateAggregationApiMaxFilteringIdMaxBytes = …;
}
#endif