Shaka Player Embedded
search_registry.h
Go to the documentation of this file.
1 // Copyright 2017 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_EME_SEARCH_REGISTRY_H_
16 #define SHAKA_EMBEDDED_JS_EME_SEARCH_REGISTRY_H_
17 
18 #include <string>
19 #include <vector>
20 
22 #include "src/core/ref_ptr.h"
24 #include "src/mapping/promise.h"
25 #include "src/memory/heap_tracer.h"
26 
27 namespace shaka {
28 namespace js {
29 namespace eme {
30 
36  public:
37  SearchRegistry(Promise promise, std::string key_system,
38  std::vector<MediaKeySystemConfiguration> configs);
40 
41  SearchRegistry(const SearchRegistry&) = delete;
43  SearchRegistry& operator=(const SearchRegistry&) = delete;
45 
46  void operator()();
47 
48  private:
49  RefPtr<Promise> promise_;
50  std::string key_system_;
51  std::vector<RefPtr<MediaKeySystemConfiguration>> configs_;
52 };
53 
54 } // namespace eme
55 } // namespace js
56 } // namespace shaka
57 
58 #endif // SHAKA_EMBEDDED_JS_EME_SEARCH_REGISTRY_H_
SearchRegistry & operator=(const SearchRegistry &)=delete
SearchRegistry(Promise promise, std::string key_system, std::vector< MediaKeySystemConfiguration > configs)