| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 V8_INSPECTOR_INSPECTEDCONTEXT_H_ | 5 #ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_ |
| 6 #define V8_INSPECTOR_INSPECTEDCONTEXT_H_ | 6 #define V8_INSPECTOR_INSPECTEDCONTEXT_H_ |
| 7 | 7 |
| 8 #include "src/inspector/Allocator.h" | 8 #include "src/base/macros.h" |
| 9 #include "src/inspector/String16.h" | 9 #include "src/inspector/String16.h" |
| 10 | 10 |
| 11 #include "include/v8.h" | 11 #include "include/v8.h" |
| 12 | 12 |
| 13 namespace v8_inspector { | 13 namespace v8_inspector { |
| 14 | 14 |
| 15 class InjectedScript; | 15 class InjectedScript; |
| 16 class InjectedScriptHost; | 16 class InjectedScriptHost; |
| 17 class V8ContextInfo; | 17 class V8ContextInfo; |
| 18 class V8InspectorImpl; | 18 class V8InspectorImpl; |
| 19 | 19 |
| 20 class InspectedContext { | 20 class InspectedContext { |
| 21 V8_INSPECTOR_DISALLOW_COPY(InspectedContext); | 21 DISALLOW_COPY_AND_ASSIGN(InspectedContext); |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 ~InspectedContext(); | 24 ~InspectedContext(); |
| 25 | 25 |
| 26 v8::Local<v8::Context> context() const; | 26 v8::Local<v8::Context> context() const; |
| 27 int contextId() const { return m_contextId; } | 27 int contextId() const { return m_contextId; } |
| 28 int contextGroupId() const { return m_contextGroupId; } | 28 int contextGroupId() const { return m_contextGroupId; } |
| 29 String16 origin() const { return m_origin; } | 29 String16 origin() const { return m_origin; } |
| 30 String16 humanReadableName() const { return m_humanReadableName; } | 30 String16 humanReadableName() const { return m_humanReadableName; } |
| 31 String16 auxData() const { return m_auxData; } | 31 String16 auxData() const { return m_auxData; } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 55 const String16 m_humanReadableName; | 55 const String16 m_humanReadableName; |
| 56 const String16 m_auxData; | 56 const String16 m_auxData; |
| 57 bool m_reported; | 57 bool m_reported; |
| 58 std::unique_ptr<InjectedScript> m_injectedScript; | 58 std::unique_ptr<InjectedScript> m_injectedScript; |
| 59 v8::Global<v8::Object> m_console; | 59 v8::Global<v8::Object> m_console; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace v8_inspector | 62 } // namespace v8_inspector |
| 63 | 63 |
| 64 #endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_ | 64 #endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_ |
| OLD | NEW |