| 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/SimpleInspector.h" | 6 #include "platform/v8_inspector/public/SimpleInspector.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/V8Inspector.h" | 10 #include "platform/v8_inspector/public/V8Inspector.h" |
| 11 #include "platform/v8_inspector/public/V8InspectorClient.h" | 11 #include "platform/v8_inspector/public/V8InspectorClient.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 SimpleInspector::SimpleInspector(v8::Isolate* isolate, v8::Local<v8::Context> co
ntext) | 15 SimpleInspector::SimpleInspector(v8::Isolate* isolate, v8::Local<v8::Context> co
ntext) |
| 16 : m_context(context) | 16 : m_context(context) |
| 17 { | 17 { |
| 18 m_inspector = V8Inspector::create(isolate, this); | 18 m_inspector = V8Inspector::create(isolate, this); |
| 19 m_inspector->contextCreated(V8ContextInfo(context, 1, true, "", | 19 m_inspector->contextCreated(V8ContextInfo(context, 1, "NodeJS Main Context")
); |
| 20 "NodeJS Main Context", "", false)); | |
| 21 } | 20 } |
| 22 | 21 |
| 23 SimpleInspector::~SimpleInspector() | 22 SimpleInspector::~SimpleInspector() |
| 24 { | 23 { |
| 25 disconnectFrontend(); | 24 disconnectFrontend(); |
| 26 } | 25 } |
| 27 | 26 |
| 28 String16 SimpleInspector::valueSubtype(v8::Local<v8::Value> value) | 27 String16 SimpleInspector::valueSubtype(v8::Local<v8::Value> value) |
| 29 { | 28 { |
| 30 return String16(); | 29 return String16(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 { | 54 { |
| 56 return m_context; | 55 return m_context; |
| 57 } | 56 } |
| 58 | 57 |
| 59 void SimpleInspector::notifyContextDestroyed() | 58 void SimpleInspector::notifyContextDestroyed() |
| 60 { | 59 { |
| 61 m_inspector->contextDestroyed(m_context); | 60 m_inspector->contextDestroyed(m_context); |
| 62 } | 61 } |
| 63 | 62 |
| 64 } // namespace blink | 63 } // namespace blink |
| OLD | NEW |