OLD | NEW |
---|---|
(Empty) | |
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 | |
5 #include "chrome/browser/android/chrome_media_client_android.h" | |
6 | |
7 #include "components/cdm/browser/widevine_drm_delegate_android.h" | |
8 | |
9 ChromeMediaClientAndroid::ChromeMediaClientAndroid() | |
10 : widevine_delegate_(new cdm::WidevineDrmDelegateAndroid) { | |
xhwang
2015/04/24 04:52:23
As commented below, use new Foo() style.
gunsch
2015/04/27 23:44:11
Done.
| |
11 } | |
12 | |
13 ChromeMediaClientAndroid::~ChromeMediaClientAndroid() { | |
14 } | |
15 | |
16 media::MediaDrmBridgeDelegate* | |
17 ChromeMediaClientAndroid::GetMediaDrmBridgeDelegate( | |
18 const std::vector<uint8_t>& scheme_uuid) const { | |
19 if (scheme_uuid == widevine_delegate_->GetUUID()) | |
20 return widevine_delegate_.get(); | |
21 return nullptr; | |
22 } | |
OLD | NEW |