Shaka Player Embedded
Main Page
Exported Types
+
Tutorials
Basic Tutorial
Network Filters
Internal Docs
+
Internal Class List
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
a
b
d
e
f
h
i
l
m
r
s
t
v
Enumerations
+
Enumerator
a
b
c
d
e
k
n
p
t
v
+
Properties
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
+
Related Functions
:
a
c
d
g
j
m
o
p
r
s
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
shaka
src
js
idb
request_impls.h
Go to the documentation of this file.
1
// Copyright 2019 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef SHAKA_EMBEDDED_JS_IDB_REQUEST_IMPLS_H_
16
#define SHAKA_EMBEDDED_JS_IDB_REQUEST_IMPLS_H_
17
18
#include "
shaka/optional.h
"
19
#include "
src/core/member.h
"
20
#include "
src/core/ref_ptr.h
"
21
#include "
src/js/idb/database.pb.h
"
22
#include "
src/js/idb/idb_utils.h
"
23
#include "
src/js/idb/request.h
"
24
25
namespace
shaka
{
26
namespace
js {
27
namespace
idb {
28
29
class
IDBCursor;
30
31
class
IDBGetRequest
:
public
IDBRequest
{
32
public
:
33
IDBGetRequest
(
34
optional
<
variant
<
Member<IDBObjectStore>
,
Member<IDBCursor>
>>
source
,
35
RefPtr<IDBTransaction>
transaction
,
IdbKeyType
key);
36
~IDBGetRequest
()
override
;
37
38
void
PerformOperation
(
SqliteTransaction
* transaction)
override
;
39
40
private
:
41
const
IdbKeyType
key_;
42
};
43
44
class
IDBStoreRequest
:
public
IDBRequest
{
45
public
:
46
IDBStoreRequest
(
47
optional
<
variant
<
Member<IDBObjectStore>
,
Member<IDBCursor>
>>
source
,
48
RefPtr<IDBTransaction>
transaction
,
proto::Value
value,
49
optional<IdbKeyType>
key,
bool
no_override);
50
~
IDBStoreRequest
()
override
;
51
52
void
PerformOperation
(
SqliteTransaction
* transaction)
override
;
53
54
private
:
55
const
proto::Value
value_;
56
const
optional<IdbKeyType>
key_;
57
const
bool
no_override_;
58
};
59
60
class
IDBDeleteRequest
:
public
IDBRequest
{
61
public
:
62
IDBDeleteRequest
(
63
optional
<
variant
<
Member<IDBObjectStore>
,
Member<IDBCursor>
>>
source
,
64
RefPtr<IDBTransaction>
transaction
,
IdbKeyType
key);
65
~
IDBDeleteRequest
()
override
;
66
67
void
PerformOperation
(
SqliteTransaction
* transaction)
override
;
68
69
private
:
70
const
IdbKeyType
key_;
71
};
72
73
class
IDBIterateCursorRequest
:
public
IDBRequest
{
74
public
:
75
IDBIterateCursorRequest
(
76
optional
<
variant
<
Member<IDBObjectStore>
,
Member<IDBCursor>
>>
source
,
77
RefPtr<IDBTransaction>
transaction
,
RefPtr<IDBCursor>
cursor,
78
uint32_t count);
79
~
IDBIterateCursorRequest
()
override
;
80
81
void
Trace
(
memory::HeapTracer
* tracer)
const override
;
82
void
PerformOperation
(
SqliteTransaction
* transaction)
override
;
83
84
uint32_t
count
;
85
86
private
:
87
const
Member<IDBCursor>
cursor_;
88
};
89
90
}
// namespace idb
91
}
// namespace js
92
}
// namespace shaka
93
94
#endif // SHAKA_EMBEDDED_JS_IDB_REQUEST_IMPLS_H_
optional.h
shaka::js::idb::IDBRequest::Trace
void Trace(memory::HeapTracer *tracer) const override
Definition:
request.cc:40
shaka::Member
Definition:
member.h:40
shaka::js::idb::IDBRequest
Definition:
request.h:47
shaka::proto::Value
Definition:
database.pb.h:400
shaka::js::idb::IDBRequest::source
optional< variant< Member< IDBObjectStore >, Member< IDBCursor > > > source
Definition:
request.h:72
shaka::optional
Definition:
optional.h:39
ref_ptr.h
shaka::js::idb::IDBGetRequest::~IDBGetRequest
~IDBGetRequest() override
Definition:
request_impls.cc:64
shaka
Definition:
async_results.h:25
shaka::js::idb::IdbKeyType
int64_t IdbKeyType
Definition:
idb_utils.h:29
shaka::js::idb::IDBGetRequest::PerformOperation
void PerformOperation(SqliteTransaction *transaction) override
Definition:
request_impls.cc:66
shaka::js::idb::IDBDeleteRequest
Definition:
request_impls.h:60
database.pb.h
shaka::memory::HeapTracer
Definition:
heap_tracer.h:85
shaka::js::idb::IDBIterateCursorRequest
Definition:
request_impls.h:73
member.h
shaka::RefPtr
Definition:
ref_ptr.h:43
idb_utils.h
shaka::js::idb::IDBGetRequest
Definition:
request_impls.h:31
shaka::js::idb::SqliteTransaction
Definition:
sqlite.h:54
shaka::variant
Definition:
variant.h:36
request.h
shaka::js::idb::IDBRequest::transaction
Member< IDBTransaction > transaction
Definition:
request.h:73
shaka::js::idb::IDBIterateCursorRequest::count
uint32_t count
Definition:
request_impls.h:84
shaka::js::idb::IDBGetRequest::IDBGetRequest
IDBGetRequest(optional< variant< Member< IDBObjectStore >, Member< IDBCursor >>> source, RefPtr< IDBTransaction > transaction, IdbKeyType key)
Definition:
request_impls.cc:60
shaka::js::idb::IDBStoreRequest
Definition:
request_impls.h:44
Generated by
1.8.13