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

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

Issue 2232443002: [DevTools] Remove SimpleInspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/SimpleInspector.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/public/SimpleInspector.cpp b/third_party/WebKit/Source/platform/v8_inspector/public/SimpleInspector.cpp
deleted file mode 100644
index 7653fd65191f8729c1b1ef671fa31058c2ab4e0f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/public/SimpleInspector.cpp
+++ /dev/null
@@ -1,52 +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/SimpleInspector.h"
-
-#include "platform/inspector_protocol/DispatcherBase.h"
-#include "platform/v8_inspector/public/V8Inspector.h"
-#include "platform/v8_inspector/public/V8InspectorSession.h"
-
-namespace blink {
-
-SimpleInspector::SimpleInspector(v8::Isolate* isolate, v8::Local<v8::Context> context)
- : m_context(context)
-{
- m_inspector = V8Inspector::create(isolate, this);
- m_inspector->contextCreated(V8ContextInfo(context, 1, "NodeJS Main Context"));
-}
-
-SimpleInspector::~SimpleInspector()
-{
- disconnectFrontend();
-}
-
-void SimpleInspector::connectFrontend(protocol::FrontendChannel* channel)
-{
- m_session = m_inspector->connect(1, channel, nullptr);
-}
-
-void SimpleInspector::disconnectFrontend()
-{
- m_session.reset();
-}
-
-void SimpleInspector::dispatchMessageFromFrontend(const String16& message)
-{
- if (m_session)
- m_session->dispatchProtocolMessage(message);
-}
-
-v8::Local<v8::Context> SimpleInspector::ensureDefaultContextInGroup(int contextGroupId)
-{
- return m_context;
-}
-
-void SimpleInspector::notifyContextDestroyed()
-{
- m_inspector->contextDestroyed(m_context);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698