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 #include "media/base/android/media_client_android.h"
7 #include "base/logging.h"
8 #include "base/stl_util.h"
12 static MediaClientAndroid
* g_media_client
= nullptr;
14 void SetMediaClientAndroid(MediaClientAndroid
* media_client
) {
15 DCHECK(!g_media_client
);
16 g_media_client
= media_client
;
19 MediaClientAndroid
* GetMediaClientAndroid() {
20 return g_media_client
;
23 MediaClientAndroid::MediaClientAndroid() {
26 MediaClientAndroid::~MediaClientAndroid() {
29 void MediaClientAndroid::AddKeySystemUUIDMappings(KeySystemUuidMap
* map
) {
32 media::MediaDrmBridgeDelegate
* MediaClientAndroid::GetMediaDrmBridgeDelegate(
33 const std::vector
<uint8_t>& scheme_uuid
) {