gunsch | 2288c53 | 2015-04-30 03:58:45 | [diff] [blame] | 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. |
| 4 | |
xhwang | f258baa | 2016-04-28 22:44:21 | [diff] [blame] | 5 | #include "chrome/common/chrome_media_client_android.h" |
gunsch | 2288c53 | 2015-04-30 03:58:45 | [diff] [blame] | 6 | |
xhwang | f258baa | 2016-04-28 22:44:21 | [diff] [blame] | 7 | ChromeMediaClientAndroid::ChromeMediaClientAndroid() {} |
gunsch | 2288c53 | 2015-04-30 03:58:45 | [diff] [blame] | 8 | |
xhwang | f258baa | 2016-04-28 22:44:21 | [diff] [blame] | 9 | ChromeMediaClientAndroid::~ChromeMediaClientAndroid() {} |
gunsch | 2288c53 | 2015-04-30 03:58:45 | [diff] [blame] | 10 | |
| 11 | media::MediaDrmBridgeDelegate* |
| 12 | ChromeMediaClientAndroid::GetMediaDrmBridgeDelegate( |
| 13 | const std::vector<uint8_t>& scheme_uuid) { |
| 14 | if (scheme_uuid == widevine_delegate_.GetUUID()) |
| 15 | return &widevine_delegate_; |
| 16 | return nullptr; |
| 17 | } |