chromium/third_party/blink/renderer/bindings/core/v8/referrer_script_info.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

// Omit storing base URL if it is same as ScriptOrigin::ResourceName().
// Note: This improves chance of getting into a fast path in
//       ReferrerScriptInfo::ToV8HostDefinedOptions.
KURL GetStoredBaseUrl(const ReferrerScriptInfo& referrer_info,
                      const KURL& script_origin_resource_name) {}

ReferrerScriptInfo Default(const KURL& script_origin_resource_name) {}

}  // namespace

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 {}

}  // namespace blink