chromium/third_party/blink/renderer/modules/canvas/canvas2d/identifiability_study_helper.cc

// 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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/canvas/canvas2d/identifiability_study_helper.h"

#include <cstdint>
#include <initializer_list>

#include "base/containers/span.h"
#include "base/hash/legacy_hash.h"
#include "third_party/blink/public/common/privacy_budget/identifiable_token.h"
#include "third_party/blink/renderer/platform/heap/visitor.h"

namespace blink {

// The maximum number of canvas context operations to incorportate into digest
// computation -- constant, but may be overridden by tests using
// IdentifiabilityStudyHelper::ScopedMaxOperationsSetter.
/*static*/ int IdentifiabilityStudyHelper::max_operations_ =;

void IdentifiabilityStudyHelper::Trace(Visitor* visitor) const {}

void IdentifiabilityStudyHelper::AddTokens(
    std::initializer_list<IdentifiableToken> tokens) {}

uint64_t IdentifiabilityStudyHelper::DigestPartialData() const {}

}  // namespace blink