chromium/v8/src/inspector/v8-inspector-impl.cc

/*
 * Copyright (c) 2010-2011 Google Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 *     * Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above
 * copyright notice, this list of conditions and the following disclaimer
 * in the documentation and/or other materials provided with the
 * distribution.
 *     * Neither the name of Google Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "src/inspector/v8-inspector-impl.h"

#include <vector>

#include "include/v8-context.h"
#include "include/v8-local-handle.h"
#include "include/v8-microtask-queue.h"
#include "include/v8-platform.h"
#include "src/base/platform/mutex.h"
#include "src/debug/debug-interface.h"
#include "src/inspector/inspected-context.h"
#include "src/inspector/string-util.h"
#include "src/inspector/v8-console-agent-impl.h"
#include "src/inspector/v8-console-message.h"
#include "src/inspector/v8-console.h"
#include "src/inspector/v8-debugger-agent-impl.h"
#include "src/inspector/v8-debugger-barrier.h"
#include "src/inspector/v8-debugger-id.h"
#include "src/inspector/v8-debugger.h"
#include "src/inspector/v8-inspector-session-impl.h"
#include "src/inspector/v8-profiler-agent-impl.h"
#include "src/inspector/v8-runtime-agent-impl.h"
#include "src/inspector/v8-stack-trace-impl.h"
#include "src/inspector/value-mirror.h"

namespace v8_inspector {

void V8InspectorClient::consoleTime(v8::Isolate* isolate,
                                    v8::Local<v8::String> label) {}

void V8InspectorClient::consoleTimeEnd(v8::Isolate* isolate,
                                       v8::Local<v8::String> label) {}

void V8InspectorClient::consoleTimeStamp(v8::Isolate* isolate,
                                         v8::Local<v8::String> label) {}

std::unique_ptr<V8Inspector> V8Inspector::create(v8::Isolate* isolate,
                                                 V8InspectorClient* client) {}

V8InspectorImpl::V8InspectorImpl(v8::Isolate* isolate,
                                 V8InspectorClient* client)
    :{}

V8InspectorImpl::~V8InspectorImpl() {}

int V8InspectorImpl::contextGroupId(v8::Local<v8::Context> context) const {}

int V8InspectorImpl::contextGroupId(int contextId) const {}

int V8InspectorImpl::resolveUniqueContextId(
    internal::V8DebuggerId uniqueId) const {}

v8::MaybeLocal<v8::Value> V8InspectorImpl::compileAndRunInternalScript(
    v8::Local<v8::Context> context, v8::Local<v8::String> source) {}

v8::MaybeLocal<v8::Script> V8InspectorImpl::compileScript(
    v8::Local<v8::Context> context, const String16& code,
    const String16& fileName) {}

void V8InspectorImpl::muteExceptions(int contextGroupId) {}

void V8InspectorImpl::unmuteExceptions(int contextGroupId) {}

V8ConsoleMessageStorage* V8InspectorImpl::ensureConsoleMessageStorage(
    int contextGroupId) {}

bool V8InspectorImpl::hasConsoleMessageStorage(int contextGroupId) {}

std::unique_ptr<V8StackTrace> V8InspectorImpl::createStackTrace(
    v8::Local<v8::StackTrace> stackTrace) {}

std::unique_ptr<V8InspectorSession> V8InspectorImpl::connect(
    int contextGroupId, V8Inspector::Channel* channel, StringView state,
    ClientTrustLevel client_trust_level, SessionPauseState pause_state) {}

void V8InspectorImpl::disconnect(V8InspectorSessionImpl* session) {}

InspectedContext* V8InspectorImpl::getContext(int groupId,
                                              int contextId) const {}

InspectedContext* V8InspectorImpl::getContext(int contextId) const {}

v8::MaybeLocal<v8::Context> V8InspectorImpl::contextById(int contextId) {}

V8DebuggerId V8InspectorImpl::uniqueDebuggerId(int contextId) {}

void V8InspectorImpl::contextCreated(const V8ContextInfo& info) {}

void V8InspectorImpl::contextDestroyed(v8::Local<v8::Context> context) {}

void V8InspectorImpl::contextCollected(int groupId, int contextId) {}

void V8InspectorImpl::resetContextGroup(int contextGroupId) {}

void V8InspectorImpl::idleStarted() {}

void V8InspectorImpl::idleFinished() {}

unsigned V8InspectorImpl::exceptionThrown(
    v8::Local<v8::Context> context, StringView message,
    v8::Local<v8::Value> exception, StringView detailedMessage, StringView url,
    unsigned lineNumber, unsigned columnNumber,
    std::unique_ptr<V8StackTrace> stackTrace, int scriptId) {}

void V8InspectorImpl::exceptionRevoked(v8::Local<v8::Context> context,
                                       unsigned exceptionId,
                                       StringView message) {}

std::unique_ptr<V8StackTrace> V8InspectorImpl::captureStackTrace(
    bool fullStack) {}

V8StackTraceId V8InspectorImpl::storeCurrentStackTrace(StringView description) {}

void V8InspectorImpl::externalAsyncTaskStarted(const V8StackTraceId& parent) {}

void V8InspectorImpl::externalAsyncTaskFinished(const V8StackTraceId& parent) {}

void V8InspectorImpl::asyncTaskScheduled(StringView taskName, void* task,
                                         bool recurring) {}

void V8InspectorImpl::asyncTaskCanceled(void* task) {}

void V8InspectorImpl::asyncTaskStarted(void* task) {}

void V8InspectorImpl::asyncTaskFinished(void* task) {}

void V8InspectorImpl::allAsyncTasksCanceled() {}

v8::MaybeLocal<v8::Context> V8InspectorImpl::regexContext() {}

v8::MaybeLocal<v8::Context> V8InspectorImpl::exceptionMetaDataContext() {}

void V8InspectorImpl::discardInspectedContext(int contextGroupId,
                                              int contextId) {}

V8InspectorSessionImpl* V8InspectorImpl::sessionById(int contextGroupId,
                                                     int sessionId) {}

V8Console* V8InspectorImpl::console() {}

void V8InspectorImpl::forEachContext(
    int contextGroupId,
    const std::function<void(InspectedContext*)>& callback) {}

void V8InspectorImpl::forEachSession(
    int contextGroupId,
    const std::function<void(V8InspectorSessionImpl*)>& callback) {}

int64_t V8InspectorImpl::generateUniqueId() {}

V8InspectorImpl::EvaluateScope::EvaluateScope(
    const InjectedScript::Scope& scope)
    :{}

struct V8InspectorImpl::EvaluateScope::CancelToken {};

V8InspectorImpl::EvaluateScope::~EvaluateScope() {}

class V8InspectorImpl::EvaluateScope::TerminateTask : public v8::Task {};

protocol::Response V8InspectorImpl::EvaluateScope::setTimeout(double timeout) {}

bool V8InspectorImpl::associateExceptionData(v8::Local<v8::Context>,
                                             v8::Local<v8::Value> exception,
                                             v8::Local<v8::Name> key,
                                             v8::Local<v8::Value> value) {}

v8::MaybeLocal<v8::Object> V8InspectorImpl::getAssociatedExceptionData(
    v8::Local<v8::Value> exception) {}

std::unique_ptr<protocol::DictionaryValue>
V8InspectorImpl::getAssociatedExceptionDataForProtocol(
    v8::Local<v8::Value> exception) {}

}  // namespace v8_inspector