blob: 3a934c456d2035928e59b904ded254a2aa4eae5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_
#define CHROMECAST_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_
#include "base/macros.h"
#include "media/base/android/media_drm_bridge_delegate.h"
namespace chromecast {
namespace media {
class PlayreadyDrmDelegateAndroid : public ::media::MediaDrmBridgeDelegate {
public:
PlayreadyDrmDelegateAndroid();
~PlayreadyDrmDelegateAndroid() override;
// ::media::MediaDrmBridgeDelegate implementation:
const ::media::UUID GetUUID() const override;
bool OnCreateSession(
const ::media::EmeInitDataType init_data_type,
const std::vector<uint8_t>& init_data,
std::vector<uint8_t>* init_data_out,
std::vector<std::string>* optional_parameters_out) override;
private:
DISALLOW_COPY_AND_ASSIGN(PlayreadyDrmDelegateAndroid);
};
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_
|