Sha256: 3a23fc1a29837f1d40a699c7cb17c07248d6a761248831e3ab05487d74400b93
Contents?: true
Size: 1.7 KB
Versions: 5
Compression:
Stored size: 1.7 KB
Contents
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_ #define V8_INSPECTOR_INSPECTEDCONTEXT_H_ #include "src/base/macros.h" #include "src/inspector/string-16.h" #include "include/v8.h" namespace v8_inspector { class InjectedScript; class InjectedScriptHost; class V8ContextInfo; class V8InspectorImpl; class InspectedContext { public: ~InspectedContext(); static int contextId(v8::Local<v8::Context>); v8::Local<v8::Context> context() const; int contextId() const { return m_contextId; } int contextGroupId() const { return m_contextGroupId; } String16 origin() const { return m_origin; } String16 humanReadableName() const { return m_humanReadableName; } String16 auxData() const { return m_auxData; } bool isReported() const { return m_reported; } void setReported(bool reported) { m_reported = reported; } v8::Isolate* isolate() const; V8InspectorImpl* inspector() const { return m_inspector; } InjectedScript* getInjectedScript() { return m_injectedScript.get(); } bool createInjectedScript(); void discardInjectedScript(); private: friend class V8InspectorImpl; InspectedContext(V8InspectorImpl*, const V8ContextInfo&, int contextId); V8InspectorImpl* m_inspector; v8::Global<v8::Context> m_context; int m_contextId; int m_contextGroupId; const String16 m_origin; const String16 m_humanReadableName; const String16 m_auxData; bool m_reported; std::unique_ptr<InjectedScript> m_injectedScript; DISALLOW_COPY_AND_ASSIGN(InspectedContext); }; } // namespace v8_inspector #endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_
Version data entries
5 entries across 5 versions & 1 rubygems