#include "content/services/auction_worklet/real_time_reporting_bindings.h"
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "content/public/common/content_features.h"
#include "content/services/auction_worklet/auction_v8_helper.h"
#include "content/services/auction_worklet/public/mojom/real_time_reporting.mojom.h"
#include "content/services/auction_worklet/webidl_compat.h"
#include "third_party/blink/public/common/features.h"
#include "v8/include/v8-exception.h"
#include "v8/include/v8-external.h"
#include "v8/include/v8-function-callback.h"
#include "v8/include/v8-function.h"
#include "v8/include/v8-template.h"
namespace auction_worklet {
namespace {
void ParseAndCollectContribution(
AuctionV8Helper* v8_helper,
AuctionV8Logger* v8_logger,
const v8::FunctionCallbackInfo<v8::Value>& args,
std::vector<auction_worklet::mojom::RealTimeReportingContributionPtr>&
contributions_out) { … }
}
RealTimeReportingBindings::RealTimeReportingBindings(AuctionV8Helper* v8_helper)
: … { … }
RealTimeReportingBindings::~RealTimeReportingBindings() = default;
void RealTimeReportingBindings::AttachToContext(
v8::Local<v8::Context> context) { … }
void RealTimeReportingBindings::Reset() { … }
void RealTimeReportingBindings::ContributeToHistogram(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
}