| 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 #include "platform/v8_inspector/V8Console.h" | 5 #include "platform/v8_inspector/V8Console.h" |
| 6 | 6 |
| 7 #include "platform/v8_inspector/InjectedScript.h" | 7 #include "platform/v8_inspector/InjectedScript.h" |
| 8 #include "platform/v8_inspector/InspectedContext.h" | 8 #include "platform/v8_inspector/InspectedContext.h" |
| 9 #include "platform/v8_inspector/StringUtil.h" |
| 9 #include "platform/v8_inspector/V8Compat.h" | 10 #include "platform/v8_inspector/V8Compat.h" |
| 10 #include "platform/v8_inspector/V8ConsoleMessage.h" | 11 #include "platform/v8_inspector/V8ConsoleMessage.h" |
| 11 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" | 12 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" |
| 12 #include "platform/v8_inspector/V8InspectorImpl.h" | 13 #include "platform/v8_inspector/V8InspectorImpl.h" |
| 13 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 14 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 14 #include "platform/v8_inspector/V8ProfilerAgentImpl.h" | 15 #include "platform/v8_inspector/V8ProfilerAgentImpl.h" |
| 15 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" | 16 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" |
| 16 #include "platform/v8_inspector/V8StackTraceImpl.h" | 17 #include "platform/v8_inspector/V8StackTraceImpl.h" |
| 17 #include "platform/v8_inspector/V8StringUtil.h" | |
| 18 #include "platform/v8_inspector/V8ValueCopier.h" | 18 #include "platform/v8_inspector/V8ValueCopier.h" |
| 19 #include "platform/v8_inspector/public/V8InspectorClient.h" | 19 #include "platform/v8_inspector/public/V8InspectorClient.h" |
| 20 | 20 |
| 21 namespace v8_inspector { | 21 namespace v8_inspector { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 v8::Local<v8::Private> inspectedContextPrivateKey(v8::Isolate* isolate) | 25 v8::Local<v8::Private> inspectedContextPrivateKey(v8::Isolate* isolate) |
| 26 { | 26 { |
| 27 return v8::Private::ForApi(isolate, toV8StringInternalized(isolate, "V8Conso
le#InspectedContext")); | 27 return v8::Private::ForApi(isolate, toV8StringInternalized(isolate, "V8Conso
le#InspectedContext")); |
| 28 } | 28 } |
| 29 | 29 |
| 30 class ConsoleHelper { | 30 class ConsoleHelper { |
| 31 PROTOCOL_DISALLOW_COPY(ConsoleHelper); | 31 V8_INSPECTOR_DISALLOW_COPY(ConsoleHelper); |
| 32 public: | 32 public: |
| 33 ConsoleHelper(const v8::FunctionCallbackInfo<v8::Value>& info) | 33 ConsoleHelper(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 34 : m_info(info) | 34 : m_info(info) |
| 35 , m_isolate(info.GetIsolate()) | 35 , m_isolate(info.GetIsolate()) |
| 36 , m_context(info.GetIsolate()->GetCurrentContext()) | 36 , m_context(info.GetIsolate()->GetCurrentContext()) |
| 37 , m_inspectedContext(nullptr) | 37 , m_inspectedContext(nullptr) |
| 38 , m_inspectorClient(nullptr) | 38 , m_inspectorClient(nullptr) |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 continue; | 823 continue; |
| 824 if (name->IsString()) { | 824 if (name->IsString()) { |
| 825 v8::Local<v8::Value> descriptor; | 825 v8::Local<v8::Value> descriptor; |
| 826 bool success = m_global->GetOwnPropertyDescriptor(m_context, v8::Loc
al<v8::String>::Cast(name)).ToLocal(&descriptor); | 826 bool success = m_global->GetOwnPropertyDescriptor(m_context, v8::Loc
al<v8::String>::Cast(name)).ToLocal(&descriptor); |
| 827 DCHECK(success); | 827 DCHECK(success); |
| 828 } | 828 } |
| 829 } | 829 } |
| 830 } | 830 } |
| 831 | 831 |
| 832 } // namespace v8_inspector | 832 } // namespace v8_inspector |
| OLD | NEW |