#include "third_party/blink/renderer/bindings/core/v8/referrer_script_info.h"
#include "mojo/public/cpp/bindings/enum_utils.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "v8/include/v8.h"
namespace blink {
namespace {
enum HostDefinedOptionsIndex : size_t { … };
KURL GetStoredBaseUrl(const ReferrerScriptInfo& referrer_info,
const KURL& script_origin_resource_name) { … }
ReferrerScriptInfo Default(const KURL& script_origin_resource_name) { … }
}
bool ReferrerScriptInfo::IsDefaultValue(
const KURL& script_origin_resource_name) const { … }
ReferrerScriptInfo ReferrerScriptInfo::FromV8HostDefinedOptions(
v8::Local<v8::Context> context,
v8::Local<v8::Data> raw_host_defined_options,
const KURL& script_origin_resource_name) { … }
v8::Local<v8::Data> ReferrerScriptInfo::ToV8HostDefinedOptions(
v8::Isolate* isolate,
const KURL& script_origin_resource_name) const { … }
}