Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / cdm / browser / widevine_drm_delegate_android.h
blob09a54aee67425f336c584b489d9bc231b43ab010
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.
5 #ifndef COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_
6 #define COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_
8 #include "base/macros.h"
9 #include "media/base/android/media_drm_bridge_delegate.h"
11 namespace cdm {
13 class WidevineDrmDelegateAndroid : public media::MediaDrmBridgeDelegate {
14 public:
15 WidevineDrmDelegateAndroid();
16 ~WidevineDrmDelegateAndroid() override;
18 // media::MediaDrmBridgeDelegate implementation:
19 const std::vector<uint8_t> GetUUID() const override;
20 bool OnCreateSession(
21 const media::EmeInitDataType init_data_type,
22 const std::vector<uint8_t>& init_data,
23 std::vector<uint8_t>* init_data_out,
24 std::vector<std::string>* optional_parameters_out) override;
26 private:
27 DISALLOW_COPY_AND_ASSIGN(WidevineDrmDelegateAndroid);
30 } // namespace cdm
32 #endif // COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_