Shaka Player Embedded
shaka
src
js
idb
idb_utils.h
Go to the documentation of this file.
1
// Copyright 2016 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_IDB_UTILS_H_
16
#define SHAKA_EMBEDDED_JS_IDB_IDB_UTILS_H_
17
18
#include <string>
19
20
#include "
shaka/variant.h
"
21
#include "
src/js/idb/database.pb.h
"
22
#include "
src/mapping/any.h
"
23
#include "
src/mapping/exception_or.h
"
24
25
namespace
shaka
{
26
namespace
js {
27
namespace
idb {
28
29
using
IdbKeyType
= int64_t;
30
49
ExceptionOr<void>
StoreInProto
(
Any
input,
proto::Value
* result);
50
56
Any
LoadFromProto
(
const
proto::Value
& value);
57
58
}
// namespace idb
59
}
// namespace js
60
}
// namespace shaka
61
62
#endif // SHAKA_EMBEDDED_JS_IDB_IDB_UTILS_H_
shaka::js::idb::LoadFromProto
Any LoadFromProto(const proto::Value &value)
Definition:
idb_utils.cc:238
shaka::Any
Definition:
any.h:31
shaka::js::idb::StoreInProto
ExceptionOr< void > StoreInProto(Any input, proto::Value *result)
Definition:
idb_utils.cc:233
shaka::proto::Value
Definition:
database.pb.h:400
shaka
Definition:
async_results.h:25
shaka::js::idb::IdbKeyType
int64_t IdbKeyType
Definition:
idb_utils.h:29
database.pb.h
exception_or.h
variant.h
any.h
shaka::ExceptionOr< void >
Definition:
exception_or.h:41
Generated by
1.8.13