#include "content/services/auction_worklet/lazy_filler.h"
#include <string_view>
#include "base/memory/raw_ptr.h"
#include "content/services/auction_worklet/auction_v8_helper.h"
#include "gin/converter.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-external.h"
#include "v8/include/v8-function-callback.h"
#include "v8/include/v8-object.h"
#include "v8/include/v8-template.h"
namespace auction_worklet {
LazyFiller::~LazyFiller() = default;
LazyFiller::LazyFiller(AuctionV8Helper* v8_helper) : … { … }
void LazyFiller::SetResult(const v8::PropertyCallbackInfo<v8::Value>& info,
v8::Local<v8::Value> result) { … }
bool LazyFiller::DefineLazyAttribute(v8::Local<v8::Object> object,
std::string_view name,
v8::AccessorNameGetterCallback getter) { … }
bool LazyFiller::DefineLazyAttributeWithMetadata(
v8::Local<v8::Object> object,
v8::Local<v8::Value> metadata,
std::string_view name,
v8::AccessorNameGetterCallback getter,
v8::Local<v8::ObjectTemplate>& lazy_filler_template) { … }
void* LazyFiller::GetSelfWithMetadataInternal(
const v8::PropertyCallbackInfo<v8::Value>& info,
v8::Local<v8::Value>& metadata) { … }
}