| 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 #ifndef InspectedContext_h | 5 #ifndef InspectedContext_h |
| 6 #define InspectedContext_h | 6 #define InspectedContext_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/v8_inspector/Allocator.h" |
| 9 #include "platform/v8_inspector/String16.h" |
| 10 |
| 9 #include <v8.h> | 11 #include <v8.h> |
| 10 | 12 |
| 11 namespace v8_inspector { | 13 namespace v8_inspector { |
| 12 | 14 |
| 13 class InjectedScript; | 15 class InjectedScript; |
| 14 class InjectedScriptHost; | 16 class InjectedScriptHost; |
| 15 class V8ContextInfo; | 17 class V8ContextInfo; |
| 16 class V8InspectorImpl; | 18 class V8InspectorImpl; |
| 17 | 19 |
| 18 namespace protocol = blink::protocol; | |
| 19 | |
| 20 class InspectedContext { | 20 class InspectedContext { |
| 21 PROTOCOL_DISALLOW_COPY(InspectedContext); | 21 V8_INSPECTOR_DISALLOW_COPY(InspectedContext); |
| 22 public: | 22 public: |
| 23 ~InspectedContext(); | 23 ~InspectedContext(); |
| 24 | 24 |
| 25 v8::Local<v8::Context> context() const; | 25 v8::Local<v8::Context> context() const; |
| 26 int contextId() const { return m_contextId; } | 26 int contextId() const { return m_contextId; } |
| 27 int contextGroupId() const { return m_contextGroupId; } | 27 int contextGroupId() const { return m_contextGroupId; } |
| 28 String16 origin() const { return m_origin; } | 28 String16 origin() const { return m_origin; } |
| 29 String16 humanReadableName() const { return m_humanReadableName; } | 29 String16 humanReadableName() const { return m_humanReadableName; } |
| 30 String16 auxData() const { return m_auxData; } | 30 String16 auxData() const { return m_auxData; } |
| 31 | 31 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 const String16 m_humanReadableName; | 53 const String16 m_humanReadableName; |
| 54 const String16 m_auxData; | 54 const String16 m_auxData; |
| 55 bool m_reported; | 55 bool m_reported; |
| 56 std::unique_ptr<InjectedScript> m_injectedScript; | 56 std::unique_ptr<InjectedScript> m_injectedScript; |
| 57 v8::Global<v8::Object> m_console; | 57 v8::Global<v8::Object> m_console; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace v8_inspector | 60 } // namespace v8_inspector |
| 61 | 61 |
| 62 #endif | 62 #endif |
| OLD | NEW |