Chromium Code Reviews| Index: chrome/browser/android/chrome_media_client_android.cc |
| diff --git a/chrome/browser/android/chrome_media_client_android.cc b/chrome/browser/android/chrome_media_client_android.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2c37c62914b71159ad8cee11925800690f620bed |
| --- /dev/null |
| +++ b/chrome/browser/android/chrome_media_client_android.cc |
| @@ -0,0 +1,22 @@ |
| +// 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. |
| + |
| +#include "chrome/browser/android/chrome_media_client_android.h" |
| + |
| +#include "components/cdm/browser/widevine_drm_delegate_android.h" |
| + |
| +ChromeMediaClientAndroid::ChromeMediaClientAndroid() |
| + : 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.
|
| +} |
| + |
| +ChromeMediaClientAndroid::~ChromeMediaClientAndroid() { |
| +} |
| + |
| +media::MediaDrmBridgeDelegate* |
| +ChromeMediaClientAndroid::GetMediaDrmBridgeDelegate( |
| + const std::vector<uint8_t>& scheme_uuid) const { |
| + if (scheme_uuid == widevine_delegate_->GetUUID()) |
| + return widevine_delegate_.get(); |
| + return nullptr; |
| +} |