Shaka Player Embedded
offline_externs.h
Go to the documentation of this file.
1 // Copyright 2020 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 // AUTO-GENERATED: DO NOT EDIT
16 
17 #ifndef SHAKA_EMBEDDED_OFFLINE_EXTERNS_H_
18 #define SHAKA_EMBEDDED_OFFLINE_EXTERNS_H_
19 
20 #include <memory>
21 #include <string>
22 #include <unordered_map>
23 #include <vector>
24 
25 #include "macros.h"
26 #include "optional.h"
27 
28 namespace shaka {
29 
30 namespace js {
31 
32 struct StoredContent;
33 
34 } // namespace js
35 
41  public:
42  StoredContent();
43  StoredContent(js::StoredContent&& internal);
46  ~StoredContent();
47 
48  StoredContent& operator=(const StoredContent&);
49  StoredContent& operator=(StoredContent&&);
50 
56  shaka::optional<std::string> offline_uri() const;
58  const std::string& original_manifest_uri() const;
60  double duration() const;
62  double size() const;
67  double expiration() const;
69  const std::unordered_map<std::string, std::string>& app_metadata() const;
70 
72  js::StoredContent GetInternal() const;
73 
74  private:
75  class Impl;
76  std::shared_ptr<Impl> impl_;
77 };
78 
79 
80 } // namespace shaka
81 
82 #endif // SHAKA_EMBEDDED_OFFLINE_EXTERNS_H_
#define SHAKA_EXPORT
Definition: macros.h:30