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

Side by Side Diff: Source/core/inspector/PerIsolateDebuggerClient.cpp

Issue 1128273005: Devtools: Move runMessageLoopOnPause and other methods on ScriptDebugServer::Client (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove empty line Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/inspector/PerIsolateDebuggerClient.h" 6 #include "core/inspector/PerIsolateDebuggerClient.h"
7 7
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "bindings/core/v8/V8ScriptRunner.h" 9 #include "bindings/core/v8/V8ScriptRunner.h"
10 #include "public/platform/Platform.h" 10 #include "public/platform/Platform.h"
11 #include "public/platform/WebData.h" 11 #include "public/platform/WebData.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 PerIsolateDebuggerClient::PerIsolateDebuggerClient(v8::Isolate* isolate) : m_iso late(isolate) 15 PerIsolateDebuggerClient::PerIsolateDebuggerClient(v8::Isolate* isolate, PassOwn Ptr<ScriptDebugServer> scriptDebugServer)
16 : m_isolate(isolate)
17 , m_scriptDebugServer(scriptDebugServer)
16 { 18 {
17 } 19 }
18 20
19 PerIsolateDebuggerClient::~PerIsolateDebuggerClient() 21 PerIsolateDebuggerClient::~PerIsolateDebuggerClient()
20 { 22 {
21 } 23 }
22 24
23 v8::Local<v8::Object> PerIsolateDebuggerClient::compileDebuggerScript() 25 v8::Local<v8::Object> PerIsolateDebuggerClient::compileDebuggerScript()
24 { 26 {
25 const WebData& debuggerScriptSourceResource = Platform::current()->loadResou rce("DebuggerScriptSource.js"); 27 const WebData& debuggerScriptSourceResource = Platform::current()->loadResou rce("DebuggerScriptSource.js");
26 v8::Local<v8::String> source = v8String(m_isolate, String(debuggerScriptSour ceResource.data(), debuggerScriptSourceResource.size())); 28 v8::Local<v8::String> source = v8String(m_isolate, String(debuggerScriptSour ceResource.data(), debuggerScriptSourceResource.size()));
27 v8::Local<v8::Value> value; 29 v8::Local<v8::Value> value;
28 if (!V8ScriptRunner::compileAndRunInternalScript(source, m_isolate).ToLocal( &value)) 30 if (!V8ScriptRunner::compileAndRunInternalScript(source, m_isolate).ToLocal( &value))
29 return v8::Local<v8::Object>(); 31 return v8::Local<v8::Object>();
30 ASSERT(value->IsObject()); 32 ASSERT(value->IsObject());
31 return value.As<v8::Object>(); 33 return value.As<v8::Object>();
32 } 34 }
33 35
34 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698