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

Unified Diff: third_party/WebKit/Source/core/inspector/ScriptDebuggerBase.cpp

Issue 1514523004: DevTools: remove V8DebuggerListener and ScriptDebuggerBase abstractions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 5 years 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/core/inspector/ScriptDebuggerBase.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ScriptDebuggerBase.cpp b/third_party/WebKit/Source/core/inspector/ScriptDebuggerBase.cpp
deleted file mode 100644
index 3140cdcb2ae234390977370a492741a0fc5c0d5c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/inspector/ScriptDebuggerBase.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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 "config.h"
-#include "core/inspector/ScriptDebuggerBase.h"
-
-#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/V8ScriptRunner.h"
-#include "public/platform/Platform.h"
-#include "public/platform/WebData.h"
-
-namespace blink {
-
-ScriptDebuggerBase::ScriptDebuggerBase(v8::Isolate* isolate)
- : m_isolate(isolate)
- , m_debugger(V8Debugger::create(isolate, this))
-{
-}
-
-ScriptDebuggerBase::~ScriptDebuggerBase()
-{
-}
-
-v8::Local<v8::Object> ScriptDebuggerBase::compileDebuggerScript()
-{
- const WebData& debuggerScriptSourceResource = Platform::current()->loadResource("DebuggerScriptSource.js");
- v8::Local<v8::String> source = v8String(m_isolate, String(debuggerScriptSourceResource.data(), debuggerScriptSourceResource.size()));
- v8::Local<v8::Value> value;
- if (!V8ScriptRunner::compileAndRunInternalScript(source, m_isolate).ToLocal(&value))
- return v8::Local<v8::Object>();
- ASSERT(value->IsObject());
- return value.As<v8::Object>();
-}
-
-}

Powered by Google App Engine
This is Rietveld 408576698