Native Player  1.0
content_protection_visitor.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 //
3 // Copyright (c) 2016, Samsung Electronics Co., Ltd
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to
7 // deal in the Software without restriction, including without limitation the
8 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 // sell copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be included in
13 // all copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM
20 // , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 // THE SOFTWARE.
22 //
23 // @author Adam Bujalski
24 //
25 // ----------------------------------------------------------------------------
26 
27 #ifndef SRC_PLAYER_ES_DASH_PLAYER_DASH_CONTENT_PROTECTION_VISITOR_H_
28 #define SRC_PLAYER_ES_DASH_PLAYER_DASH_CONTENT_PROTECTION_VISITOR_H_
29 
30 #include <memory>
31 #include <vector>
32 
36 
37 namespace dash {
38 namespace mpd {
39 class IDescriptor;
40 }
41 }
42 
56  public:
58  virtual ~ContentProtectionDescriptor() = default;
59 
60  protected:
61  ContentProtectionDescriptor() = default;
65  default;
67  default;
68 };
69 
90  public:
92  virtual ~ContentProtectionVisitor() = default;
93 
106  virtual std::shared_ptr<ContentProtectionDescriptor> Visit(
107  const std::vector<dash::mpd::IDescriptor*>& cp) = 0;
108 
109  protected:
110  ContentProtectionVisitor() = default;
114  default;
116  default;
117 };
118 
119 #endif // SRC_PLAYER_ES_DASH_PLAYER_DASH_CONTENT_PROTECTION_VISITOR_H_
This is an interface for classes provided by the application parsing DRM information from the DASH ma...
This is an interface for all DRM handling classes provided by the application.