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

#include <injected-script.h>

Collaboration diagram for v8_inspector::PromiseHandlerTracker:

Public Types

enum class  DiscardReason { kFulfilled , kPromiseCollected , kTearDown }
 
using Id = int64_t
 

Public Member Functions

 PromiseHandlerTracker ()
 
 PromiseHandlerTracker (const PromiseHandlerTracker &)=delete
 
void operator= (const PromiseHandlerTracker &)=delete
 
 ~PromiseHandlerTracker ()
 
template<typename... Args>
Id create (Args &&... args)
 
void discard (Id id, DiscardReason reason)
 
InjectedScript::ProtocolPromiseHandlerget (Id id) const
 

Private Member Functions

void sendFailure (InjectedScript::ProtocolPromiseHandler *handler, const protocol::DispatchResponse &response) const
 
void discardAll ()
 

Private Attributes

std::map< Id, std::unique_ptr< InjectedScript::ProtocolPromiseHandler > > m_promiseHandlers
 
Id m_lastUsedId = 1
 

Detailed Description

Definition at line 279 of file injected-script.h.

Member Typedef Documentation

◆ Id

Definition at line 295 of file injected-script.h.

Member Enumeration Documentation

◆ DiscardReason

Enumerator
kFulfilled 
kPromiseCollected 
kTearDown 

Definition at line 290 of file injected-script.h.

Constructor & Destructor Documentation

◆ PromiseHandlerTracker() [1/2]

v8_inspector::PromiseHandlerTracker::PromiseHandlerTracker ( )
default

◆ PromiseHandlerTracker() [2/2]

v8_inspector::PromiseHandlerTracker::PromiseHandlerTracker ( const PromiseHandlerTracker & )
delete

◆ ~PromiseHandlerTracker()

v8_inspector::PromiseHandlerTracker::~PromiseHandlerTracker ( )

Definition at line 1187 of file injected-script.cc.

Member Function Documentation

◆ create()

template<typename... Args>
PromiseHandlerTracker::Id v8_inspector::PromiseHandlerTracker::create ( Args &&... args)

Definition at line 1190 of file injected-script.cc.

Here is the caller graph for this function:

◆ discard()

void v8_inspector::PromiseHandlerTracker::discard ( Id id,
DiscardReason reason )

Definition at line 1199 of file injected-script.cc.

Here is the caller graph for this function:

◆ discardAll()

void v8_inspector::PromiseHandlerTracker::discardAll ( )
private

Definition at line 1242 of file injected-script.cc.

◆ get()

InjectedScript::ProtocolPromiseHandler * v8_inspector::PromiseHandlerTracker::get ( Id id) const

Definition at line 1220 of file injected-script.cc.

Here is the caller graph for this function:

◆ operator=()

void v8_inspector::PromiseHandlerTracker::operator= ( const PromiseHandlerTracker & )
delete

◆ sendFailure()

void v8_inspector::PromiseHandlerTracker::sendFailure ( InjectedScript::ProtocolPromiseHandler * handler,
const protocol::DispatchResponse & response ) const
private

Definition at line 1228 of file injected-script.cc.

Here is the call graph for this function:

Member Data Documentation

◆ m_lastUsedId

Id v8_inspector::PromiseHandlerTracker::m_lastUsedId = 1
private

Definition at line 309 of file injected-script.h.

◆ m_promiseHandlers

std::map<Id, std::unique_ptr<InjectedScript::ProtocolPromiseHandler> > v8_inspector::PromiseHandlerTracker::m_promiseHandlers
private

Definition at line 308 of file injected-script.h.


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