OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_ | |
6 #define COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "base/macros.h" | |
11 #include "media/base/android/media_drm_bridge_delegate.h" | |
12 | |
13 namespace cdm { | |
14 | |
15 class WidevineDrmDelegateAndroid : public media::MediaDrmBridgeDelegate { | |
16 public: | |
17 WidevineDrmDelegateAndroid(); | |
18 ~WidevineDrmDelegateAndroid() override; | |
19 | |
20 // media::MediaDrmBridgeDelegate implementation: | |
21 const std::vector<uint8_t> GetUUID() const override; | |
22 bool OnCreateSession( | |
23 const media::EmeInitDataType init_data_type, | |
24 const std::vector<uint8_t>& init_data, | |
25 std::vector<uint8_t>* init_data_out, | |
26 std::vector<std::string>* optional_parameters_out) override; | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(WidevineDrmDelegateAndroid); | |
30 }; | |
31 | |
32 } // namespace cdm | |
33 | |
34 #endif // COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_ | |
OLD | NEW |