// 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 #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& init_data, std::vector* init_data_out, std::vector* optional_parameters_out) override; private: DISALLOW_COPY_AND_ASSIGN(PlayreadyDrmDelegateAndroid); }; } // namespace media } // namespace chromecast #endif // CHROMECAST_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_