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 CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_
6 #define CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_
10 #include "base/macros.h"
11 #include "chromecast/media/cdm/playready_drm_delegate_android.h"
12 #include "components/cdm/browser/widevine_drm_delegate_android.h"
13 #include "media/base/android/media_client_android.h"
15 namespace chromecast
{
18 class CastMediaClientAndroid
: public ::media::MediaClientAndroid
{
20 CastMediaClientAndroid();
21 ~CastMediaClientAndroid() override
;
24 // ::media::MediaClientAndroid implementation:
25 void AddKeySystemUUIDMappings(KeySystemUuidMap
* map
) override
;
26 ::media::MediaDrmBridgeDelegate
* GetMediaDrmBridgeDelegate(
27 const ::media::UUID
& scheme_uuid
) override
;
29 #if defined(PLAYREADY_CDM_AVAILABLE)
30 PlayreadyDrmDelegateAndroid playready_delegate_
;
33 cdm::WidevineDrmDelegateAndroid widevine_delegate_
;
35 DISALLOW_COPY_AND_ASSIGN(CastMediaClientAndroid
);
39 } // namespace chromecast
41 #endif // CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_