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
public
eme_promise_impl.h
Go to the documentation of this file.
1
// Copyright 2018 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_EME_PROMISE_IMPL_H_
16
#define SHAKA_EMBEDDED_EME_PROMISE_IMPL_H_
17
18
#include <atomic>
19
#include <string>
20
21
#include "
shaka/eme/eme_promise.h
"
22
23
#include "
src/core/ref_ptr.h
"
24
#include "
src/mapping/promise.h
"
25
#include "
src/util/macros.h
"
26
27
namespace
shaka
{
28
namespace
eme {
29
30
class
EmePromise::Impl
{
31
public
:
32
Impl
(
const
Promise
& promise,
bool
has_value);
33
virtual
~Impl
();
34
35
SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE
(
Impl
);
36
37
virtual
void
Resolve
();
38
virtual
void
ResolveWith
(
bool
value);
39
virtual
void
Reject
(
ExceptionType
except_type,
const
std::string&
message
);
40
41
protected
:
42
Impl
();
43
44
private
:
45
RefPtr<Promise>
promise_;
46
std::atomic<bool> is_pending_;
47
const
bool
has_value_;
48
};
49
50
}
// namespace eme
51
}
// namespace shaka
52
53
#endif // SHAKA_EMBEDDED_EME_PROMISE_IMPL_H_
eme_promise.h
macros.h
shaka::eme::EmePromise::Impl::ResolveWith
virtual void ResolveWith(bool value)
Definition:
eme_promise.cc:60
shaka::eme::EmePromise::Impl::Resolve
virtual void Resolve()
Definition:
eme_promise.cc:38
shaka::eme::ExceptionType
ExceptionType
Definition:
configuration.h:68
ref_ptr.h
shaka
Definition:
async_results.h:25
shaka::eme::EmePromise::Impl
Definition:
eme_promise_impl.h:30
promise.h
shaka::RefPtr
Definition:
ref_ptr.h:43
shaka::eme::EmePromise::Impl::SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE
SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE(Impl)
shaka::eme::EmePromise::Impl::Impl
Impl()
Definition:
eme_promise.cc:34
message
const char * message
Definition:
dom_exception.cc:36
shaka::eme::EmePromise::Impl::Reject
virtual void Reject(ExceptionType except_type, const std::string &message)
Definition:
eme_promise.cc:82
shaka::eme::EmePromise::Impl::~Impl
virtual ~Impl()
Definition:
eme_promise.cc:36
shaka::Promise
Definition:
promise.h:37
Generated by
1.8.13