chromium/third_party/blink/renderer/core/script/script.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.

#include "third_party/blink/renderer/core/script/script.h"

#include <optional>

#include "third_party/blink/renderer/bindings/core/v8/script_evaluation_result.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/script_type_names.h"

namespace blink {

std::optional<mojom::blink::ScriptType> Script::ParseScriptType(
    const String& script_type) {}

void Script::RunScriptOnScriptState(
    ScriptState* script_state,
    ExecuteScriptPolicy execute_script_policy,
    V8ScriptRunner::RethrowErrorsOption rethrow_errors) {}

void Script::RunScript(LocalDOMWindow* window,
                       ExecuteScriptPolicy execute_script_policy,
                       V8ScriptRunner::RethrowErrorsOption rethrow_errors) {}

ScriptEvaluationResult Script::RunScriptAndReturnValue(
    LocalDOMWindow* window,
    ExecuteScriptPolicy execute_script_policy,
    V8ScriptRunner::RethrowErrorsOption rethrow_errors) {}

}  // namespace blink