blob: 82eba9ba22bdb20dd15e40d27ca40fba33b058c2 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// 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/classic_script.h"
#include "third_party/blink/renderer/bindings/core/v8/script_controller.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
namespace blink {
void ClassicScript::Trace(blink::Visitor* visitor) {
Script::Trace(visitor);
visitor->Trace(script_source_code_);
}
void ClassicScript::RunScript(LocalFrame* frame,
const SecurityOrigin* security_origin) const {
frame->GetScriptController().ExecuteScriptInMainWorld(
GetScriptSourceCode(), BaseURL(), sanitize_script_errors_,
FetchOptions());
}
} // namespace blink