| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 | 5 |
| 6 #include "platform/v8_inspector/public/V8Inspector.h" | 6 #include "platform/v8_inspector/public/V8Inspector.h" |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/DispatcherBase.h" | 8 #include "platform/inspector_protocol/DispatcherBase.h" |
| 9 #include "platform/v8_inspector/V8StringUtil.h" | 9 #include "platform/v8_inspector/V8StringUtil.h" |
| 10 #include "platform/v8_inspector/public/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
| 11 #include "platform/v8_inspector/public/V8DebuggerClient.h" | 11 #include "platform/v8_inspector/public/V8DebuggerClient.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 V8Inspector::V8Inspector(v8::Isolate* isolate, v8::Local<v8::Context> context) | 15 V8Inspector::V8Inspector(v8::Isolate* isolate, v8::Local<v8::Context> context) |
| 16 { | 16 { |
| 17 m_debugger = V8Debugger::create(isolate, this); | 17 m_debugger = V8Debugger::create(isolate, this); |
| 18 m_debugger->contextCreated(V8ContextInfo(context, 1, true, "", | 18 m_debugger->contextCreated(V8ContextInfo(context, 1, true, "", |
| 19 "NodeJS Main Context", "", false)); | 19 "NodeJS Main Context", "", false)); |
| 20 } | 20 } |
| 21 | 21 |
| 22 V8Inspector::~V8Inspector() | 22 V8Inspector::~V8Inspector() |
| 23 { | 23 { |
| 24 disconnectFrontend(); | 24 disconnectFrontend(); |
| 25 } | 25 } |
| 26 | 26 |
| 27 bool V8Inspector::callingContextCanAccessContext(v8::Local<v8::Context> calling,
v8::Local<v8::Context> target) | |
| 28 { | |
| 29 return true; | |
| 30 } | |
| 31 | |
| 32 String16 V8Inspector::valueSubtype(v8::Local<v8::Value> value) | 27 String16 V8Inspector::valueSubtype(v8::Local<v8::Value> value) |
| 33 { | 28 { |
| 34 return String16(); | 29 return String16(); |
| 35 } | 30 } |
| 36 | 31 |
| 37 bool V8Inspector::formatAccessorsAsProperties(v8::Local<v8::Value> value) | 32 bool V8Inspector::formatAccessorsAsProperties(v8::Local<v8::Value> value) |
| 38 { | 33 { |
| 39 return false; | 34 return false; |
| 40 } | 35 } |
| 41 | 36 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 68 { | 63 { |
| 69 | 64 |
| 70 } | 65 } |
| 71 | 66 |
| 72 bool V8Inspector::isExecutionAllowed() | 67 bool V8Inspector::isExecutionAllowed() |
| 73 { | 68 { |
| 74 return true; | 69 return true; |
| 75 } | 70 } |
| 76 | 71 |
| 77 } // namespace blink | 72 } // namespace blink |
| OLD | NEW |