![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <injected-script.h>
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::ProtocolPromiseHandler * | get (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 |
Definition at line 279 of file injected-script.h.
using v8_inspector::PromiseHandlerTracker::Id = int64_t |
Definition at line 295 of file injected-script.h.
|
strong |
Enumerator | |
---|---|
kFulfilled | |
kPromiseCollected | |
kTearDown |
Definition at line 290 of file injected-script.h.
|
default |
|
delete |
v8_inspector::PromiseHandlerTracker::~PromiseHandlerTracker | ( | ) |
Definition at line 1187 of file injected-script.cc.
PromiseHandlerTracker::Id v8_inspector::PromiseHandlerTracker::create | ( | Args &&... | args | ) |
void v8_inspector::PromiseHandlerTracker::discard | ( | Id | id, |
DiscardReason | reason ) |
|
private |
Definition at line 1242 of file injected-script.cc.
InjectedScript::ProtocolPromiseHandler * v8_inspector::PromiseHandlerTracker::get | ( | Id | id | ) | const |
|
delete |
|
private |
|
private |
Definition at line 309 of file injected-script.h.
|
private |
Definition at line 308 of file injected-script.h.