Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1294)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8Inspector.cpp

Issue 2199943004: [DevTools] Rename V8Debugger to V8Inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/public/V8Inspector.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/public/V8Inspector.cpp b/third_party/WebKit/Source/platform/v8_inspector/public/V8Inspector.cpp
deleted file mode 100644
index 447031883d122508d740de039dd6cb42552a9a2d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/public/V8Inspector.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2016 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 "platform/v8_inspector/public/V8Inspector.h"
-
-#include "platform/inspector_protocol/DispatcherBase.h"
-#include "platform/v8_inspector/V8StringUtil.h"
-#include "platform/v8_inspector/public/V8Debugger.h"
-#include "platform/v8_inspector/public/V8DebuggerClient.h"
-
-namespace blink {
-
-V8Inspector::V8Inspector(v8::Isolate* isolate, v8::Local<v8::Context> context)
- : m_context(context)
-{
- m_debugger = V8Debugger::create(isolate, this);
- m_debugger->contextCreated(V8ContextInfo(context, 1, true, "",
- "NodeJS Main Context", "", false));
-}
-
-V8Inspector::~V8Inspector()
-{
- disconnectFrontend();
-}
-
-String16 V8Inspector::valueSubtype(v8::Local<v8::Value> value)
-{
- return String16();
-}
-
-bool V8Inspector::formatAccessorsAsProperties(v8::Local<v8::Value> value)
-{
- return false;
-}
-
-void V8Inspector::connectFrontend(protocol::FrontendChannel* channel)
-{
- m_session = m_debugger->connect(1, channel, this, &m_state);
-}
-
-void V8Inspector::disconnectFrontend()
-{
- m_session.reset();
-}
-
-void V8Inspector::dispatchMessageFromFrontend(const String16& message)
-{
- if (m_session)
- m_session->dispatchProtocolMessage(message);
-}
-
-v8::Local<v8::Context> V8Inspector::ensureDefaultContextInGroup(int)
-{
- return m_context;
-}
-
-bool V8Inspector::isExecutionAllowed()
-{
- return true;
-}
-
-bool V8Inspector::canExecuteScripts()
-{
- return true;
-}
-
-void V8Inspector::notifyContextDestroyed()
-{
- m_debugger->contextDestroyed(m_context);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698