|
Shaka Player Embedded
|
#include <open_db_request.h>
Public Member Functions | |
| IDBOpenDBRequest (const std::string &name, optional< int64_t > version) | |
| void | DoOperation (const std::string &db_path) |
| void | PerformOperation (SqliteTransaction *transaction) override |
Public Member Functions inherited from shaka::js::idb::IDBRequest | |
| IDBRequest (optional< variant< Member< IDBObjectStore >, Member< IDBCursor >>> source, RefPtr< IDBTransaction > transaction) | |
| void | Trace (memory::HeapTracer *tracer) const override |
| void | OnAbort () |
| ExceptionOr< Any > | Result () const |
| ExceptionOr< Any > | Error () const |
Public Member Functions inherited from shaka::js::events::EventTarget | |
| EventTarget () | |
| void | AddEventListener (const std::string &type, Listener callback) |
| void | SetCppEventListener (EventType type, std::function< void()> callback) |
| void | RemoveEventListener (const std::string &type, Listener callback) |
| void | UnsetCppEventListener (EventType type) |
| ExceptionOr< bool > | DispatchEvent (RefPtr< Event > event) |
| ExceptionOr< bool > | DispatchEventInternal (RefPtr< Event > event, bool *did_listeners_throw) |
| template<typename EventType , typename... Args> | |
| std::shared_ptr< ThreadEvent< bool > > | ScheduleEvent (Args &&... args) |
| template<typename EventType , typename... Args> | |
| ExceptionOr< bool > | RaiseEvent (Args... args) |
Public Member Functions inherited from shaka::BackingObject | |
| BackingObject () | |
| void | Trace (memory::HeapTracer *tracer) const override |
| bool | IsRootedAlive () const override |
| std::string | name () const |
| virtual BackingObjectFactoryBase * | factory () const =0 |
| bool | DerivedFrom (const std::string &base) |
| ReturnVal< JsValue > | JsThis () const |
| void | SetJsThis (Handle< JsObject > this_) |
Public Member Functions inherited from shaka::memory::Traceable | |
| virtual | ~Traceable () |
| virtual bool | IsShortLived () const |
Public Attributes | |
| Listener | on_upgrade_needed |
Public Attributes inherited from shaka::js::idb::IDBRequest | |
| optional< variant< Member< IDBObjectStore >, Member< IDBCursor > > > | source |
| Member< IDBTransaction > | transaction |
| IDBRequestReadyState | ready_state = IDBRequestReadyState::PENDING |
| Listener | on_success |
| Listener | on_error |
Additional Inherited Members | |
Public Types inherited from shaka::js::events::EventTarget | |
| using | Listener = optional< Callback > |
Static Public Member Functions inherited from shaka::BackingObject | |
| static void * | operator new[] (size_t size)=delete |
| static void | operator delete[] (void *)=delete |
Static Public Attributes inherited from shaka::BackingObject | |
| static constexpr const size_t | kInternalFieldCount = 2 |
Static Public Attributes inherited from shaka::memory::Traceable | |
| static constexpr const uint64_t | kShortLiveDurationMs = 5000 |
Protected Member Functions inherited from shaka::js::idb::IDBRequest | |
| void | CompleteSuccess (Any result) |
| void | CompleteError (JsError error) |
| void | CompleteError (DatabaseStatus status) |
Protected Member Functions inherited from shaka::js::events::EventTarget | |
| void | AddListenerField (EventType type, Listener *on_field) |
Protected Member Functions inherited from shaka::BackingObject | |
| ~BackingObject () override | |
Protected Attributes inherited from shaka::js::idb::IDBRequest | |
| Any | result_ |
| Any | error_ |
Definition at line 31 of file open_db_request.h.
| shaka::js::idb::IDBOpenDBRequest::IDBOpenDBRequest | ( | const std::string & | name, |
| optional< int64_t > | version | ||
| ) |
Definition at line 34 of file open_db_request.cc.
| Doxygen_Skip void shaka::js::idb::IDBOpenDBRequest::DoOperation | ( | const std::string & | db_path | ) |
Definition at line 44 of file open_db_request.cc.
|
overridevirtual |
Performs the operation for this request. This will synchronously fire events into JavaScript.
Implements shaka::js::idb::IDBRequest.
Definition at line 111 of file open_db_request.cc.
| Listener shaka::js::idb::IDBOpenDBRequest::on_upgrade_needed |
Definition at line 41 of file open_db_request.h.
1.8.13