v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8_inspector::InspectedContext Class Reference

#include <inspected-context.h>

Collaboration diagram for v8_inspector::InspectedContext:

Classes

class  ContextCollectedCallbacks
 
class  WeakCallbackData
 

Public Member Functions

 ~InspectedContext ()
 
 InspectedContext (const InspectedContext &)=delete
 
InspectedContextoperator= (const InspectedContext &)=delete
 
v8::Local< v8::Contextcontext () const
 
int contextId () const
 
int contextGroupId () const
 
String16 origin () const
 
String16 humanReadableName () const
 
internal::V8DebuggerId uniqueId () const
 
String16 auxData () const
 
bool isReported (int sessionId) const
 
void setReported (int sessionId, bool reported)
 
v8::Isolateisolate () const
 
V8InspectorImplinspector () const
 
InjectedScriptgetInjectedScript (int sessionId)
 
InjectedScriptcreateInjectedScript (int sessionId)
 
void discardInjectedScript (int sessionId)
 
bool addInternalObject (v8::Local< v8::Object > object, V8InternalValueType type)
 
V8InternalValueType getInternalType (v8::Local< v8::Object > object)
 

Static Public Member Functions

static int contextId (v8::Local< v8::Context >)
 

Private Member Functions

 InspectedContext (V8InspectorImpl *, const V8ContextInfo &, int contextId)
 

Private Attributes

V8InspectorImplm_inspector
 
v8::Global< v8::Contextm_context
 
int m_contextId
 
int m_contextGroupId
 
const String16 m_origin
 
const String16 m_humanReadableName
 
const String16 m_auxData
 
const internal::V8DebuggerId m_uniqueId
 
std::unordered_set< int > m_reportedSessionIds
 
std::unordered_map< int, std::unique_ptr< InjectedScript > > m_injectedScripts
 
WeakCallbackDatam_weakCallbackData
 
v8::Global< v8::debug::EphemeronTablem_internalObjects
 

Friends

class V8InspectorImpl
 

Detailed Description

Definition at line 40 of file inspected-context.h.

Constructor & Destructor Documentation

◆ ~InspectedContext()

v8_inspector::InspectedContext::~InspectedContext ( )

Definition at line 100 of file inspected-context.cc.

Here is the call graph for this function:

◆ InspectedContext() [1/2]

v8_inspector::InspectedContext::InspectedContext ( const InspectedContext & )
delete

◆ InspectedContext() [2/2]

v8_inspector::InspectedContext::InspectedContext ( V8InspectorImpl * inspector,
const V8ContextInfo & info,
int contextId )
private

Definition at line 62 of file inspected-context.cc.

Here is the call graph for this function:

Member Function Documentation

◆ addInternalObject()

bool v8_inspector::InspectedContext::addInternalObject ( v8::Local< v8::Object > object,
V8InternalValueType type )

Definition at line 147 of file inspected-context.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ auxData()

String16 v8_inspector::InspectedContext::auxData ( ) const
inline

Definition at line 54 of file inspected-context.h.

Here is the caller graph for this function:

◆ context()

v8::Local< v8::Context > v8_inspector::InspectedContext::context ( ) const

Definition at line 111 of file inspected-context.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contextGroupId()

int v8_inspector::InspectedContext::contextGroupId ( ) const
inline

Definition at line 50 of file inspected-context.h.

◆ contextId() [1/2]

int v8_inspector::InspectedContext::contextId ( ) const
inline

Definition at line 49 of file inspected-context.h.

Here is the caller graph for this function:

◆ contextId() [2/2]

int v8_inspector::InspectedContext::contextId ( v8::Local< v8::Context > context)
static

Definition at line 107 of file inspected-context.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createInjectedScript()

InjectedScript * v8_inspector::InspectedContext::createInjectedScript ( int sessionId)

Definition at line 135 of file inspected-context.cc.

Here is the call graph for this function:

◆ discardInjectedScript()

void v8_inspector::InspectedContext::discardInjectedScript ( int sessionId)

Definition at line 143 of file inspected-context.cc.

◆ getInjectedScript()

InjectedScript * v8_inspector::InspectedContext::getInjectedScript ( int sessionId)

Definition at line 130 of file inspected-context.cc.

Here is the caller graph for this function:

◆ getInternalType()

V8InternalValueType v8_inspector::InspectedContext::getInternalType ( v8::Local< v8::Object > object)

Definition at line 161 of file inspected-context.cc.

Here is the call graph for this function:

◆ humanReadableName()

String16 v8_inspector::InspectedContext::humanReadableName ( ) const
inline

Definition at line 52 of file inspected-context.h.

◆ inspector()

V8InspectorImpl * v8_inspector::InspectedContext::inspector ( ) const
inline

Definition at line 60 of file inspected-context.h.

Here is the caller graph for this function:

◆ isolate()

v8::Isolate * v8_inspector::InspectedContext::isolate ( ) const

Definition at line 115 of file inspected-context.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isReported()

bool v8_inspector::InspectedContext::isReported ( int sessionId) const

Definition at line 119 of file inspected-context.cc.

◆ operator=()

InspectedContext & v8_inspector::InspectedContext::operator= ( const InspectedContext & )
delete

◆ origin()

String16 v8_inspector::InspectedContext::origin ( ) const
inline

Definition at line 51 of file inspected-context.h.

◆ setReported()

void v8_inspector::InspectedContext::setReported ( int sessionId,
bool reported )

Definition at line 123 of file inspected-context.cc.

◆ uniqueId()

internal::V8DebuggerId v8_inspector::InspectedContext::uniqueId ( ) const
inline

Definition at line 53 of file inspected-context.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ V8InspectorImpl

friend class V8InspectorImpl
friend

Definition at line 71 of file inspected-context.h.

Member Data Documentation

◆ m_auxData

const String16 v8_inspector::InspectedContext::m_auxData
private

Definition at line 83 of file inspected-context.h.

◆ m_context

v8::Global<v8::Context> v8_inspector::InspectedContext::m_context
private

Definition at line 78 of file inspected-context.h.

◆ m_contextGroupId

int v8_inspector::InspectedContext::m_contextGroupId
private

Definition at line 80 of file inspected-context.h.

◆ m_contextId

int v8_inspector::InspectedContext::m_contextId
private

Definition at line 79 of file inspected-context.h.

◆ m_humanReadableName

const String16 v8_inspector::InspectedContext::m_humanReadableName
private

Definition at line 82 of file inspected-context.h.

◆ m_injectedScripts

std::unordered_map<int, std::unique_ptr<InjectedScript> > v8_inspector::InspectedContext::m_injectedScripts
private

Definition at line 86 of file inspected-context.h.

◆ m_inspector

V8InspectorImpl* v8_inspector::InspectedContext::m_inspector
private

Definition at line 77 of file inspected-context.h.

◆ m_internalObjects

v8::Global<v8::debug::EphemeronTable> v8_inspector::InspectedContext::m_internalObjects
private

Definition at line 88 of file inspected-context.h.

◆ m_origin

const String16 v8_inspector::InspectedContext::m_origin
private

Definition at line 81 of file inspected-context.h.

◆ m_reportedSessionIds

std::unordered_set<int> v8_inspector::InspectedContext::m_reportedSessionIds
private

Definition at line 85 of file inspected-context.h.

◆ m_uniqueId

const internal::V8DebuggerId v8_inspector::InspectedContext::m_uniqueId
private

Definition at line 84 of file inspected-context.h.

◆ m_weakCallbackData

WeakCallbackData* v8_inspector::InspectedContext::m_weakCallbackData
private

Definition at line 87 of file inspected-context.h.


The documentation for this class was generated from the following files: