Shaka Player Embedded
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"
24 
25 namespace shaka {
26 namespace js {
27 namespace idb {
28 
29 using IdbKeyType = int64_t;
30 
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_
Any LoadFromProto(const proto::Value &value)
Definition: idb_utils.cc:238
Definition: any.h:31
ExceptionOr< void > StoreInProto(Any input, proto::Value *result)
Definition: idb_utils.cc:233
int64_t IdbKeyType
Definition: idb_utils.h:29