chromium/gin/shell_runner.cc

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

#include "gin/shell_runner.h"

#include <memory>

#include "gin/converter.h"
#include "gin/per_context_data.h"
#include "gin/public/context_holder.h"
#include "gin/try_catch.h"
#include "v8/include/v8-script.h"

Context;
HandleScope;
Isolate;
Object;
ObjectTemplate;
Script;

namespace gin {

ShellRunnerDelegate::ShellRunnerDelegate() = default;

ShellRunnerDelegate::~ShellRunnerDelegate() = default;

v8::Local<ObjectTemplate> ShellRunnerDelegate::GetGlobalTemplate(
    ShellRunner* runner,
    v8::Isolate* isolate) {}

void ShellRunnerDelegate::DidCreateContext(ShellRunner* runner) {}

void ShellRunnerDelegate::WillRunScript(ShellRunner* runner) {}

void ShellRunnerDelegate::DidRunScript(ShellRunner* runner) {}

void ShellRunnerDelegate::UnhandledException(ShellRunner* runner,
                                               TryCatch& try_catch) {}

ShellRunner::ShellRunner(ShellRunnerDelegate* delegate, Isolate* isolate)
    :{}

ShellRunner::~ShellRunner() = default;

v8::MaybeLocal<v8::Value> ShellRunner::Run(const std::string& source,
                                           const std::string& resource_name) {}

ContextHolder* ShellRunner::GetContextHolder() {}

v8::MaybeLocal<v8::Value> ShellRunner::Run(v8::Local<Script> script) {}

}  // namespace gin