OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BLINK_KEY_SYSTEM_CONFIG_SELECTOR_H_ | 5 #ifndef MEDIA_BLINK_KEY_SYSTEM_CONFIG_SELECTOR_H_ |
6 #define MEDIA_BLINK_KEY_SYSTEM_CONFIG_SELECTOR_H_ | 6 #define MEDIA_BLINK_KEY_SYSTEM_CONFIG_SELECTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "media/base/eme_constants.h" | 15 #include "media/base/eme_constants.h" |
16 #include "media/base/media_export.h" | 16 #include "media/blink/media_blink_export.h" |
17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 struct WebMediaKeySystemConfiguration; | 21 struct WebMediaKeySystemConfiguration; |
22 struct WebMediaKeySystemMediaCapability; | 22 struct WebMediaKeySystemMediaCapability; |
23 class WebSecurityOrigin; | 23 class WebSecurityOrigin; |
24 class WebString; | 24 class WebString; |
25 | 25 |
26 } // namespace blink | 26 } // namespace blink |
27 | 27 |
28 namespace media { | 28 namespace media { |
29 | 29 |
30 struct CdmConfig; | 30 struct CdmConfig; |
31 class KeySystems; | 31 class KeySystems; |
32 class MediaPermission; | 32 class MediaPermission; |
33 | 33 |
34 class MEDIA_EXPORT KeySystemConfigSelector { | 34 class MEDIA_BLINK_EXPORT KeySystemConfigSelector { |
35 public: | 35 public: |
36 KeySystemConfigSelector( | 36 KeySystemConfigSelector( |
37 const KeySystems* key_systems, | 37 const KeySystems* key_systems, |
38 MediaPermission* media_permission); | 38 MediaPermission* media_permission); |
39 | 39 |
40 ~KeySystemConfigSelector(); | 40 ~KeySystemConfigSelector(); |
41 | 41 |
42 void SelectConfig( | 42 void SelectConfig( |
43 const blink::WebString& key_system, | 43 const blink::WebString& key_system, |
44 const blink::WebVector<blink::WebMediaKeySystemConfiguration>& | 44 const blink::WebVector<blink::WebMediaKeySystemConfiguration>& |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const KeySystems* key_systems_; | 88 const KeySystems* key_systems_; |
89 MediaPermission* media_permission_; | 89 MediaPermission* media_permission_; |
90 base::WeakPtrFactory<KeySystemConfigSelector> weak_factory_; | 90 base::WeakPtrFactory<KeySystemConfigSelector> weak_factory_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(KeySystemConfigSelector); | 92 DISALLOW_COPY_AND_ASSIGN(KeySystemConfigSelector); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace media | 95 } // namespace media |
96 | 96 |
97 #endif // MEDIA_BLINK_KEY_SYSTEM_CONFIG_SELECTOR_H_ | 97 #endif // MEDIA_BLINK_KEY_SYSTEM_CONFIG_SELECTOR_H_ |
OLD | NEW |