1 // Copyright 2014 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 "chromecast/media/cdm/browser_cdm_cast.h"
10 BrowserCdmCast::BrowserCdmCast() {
13 BrowserCdmCast::~BrowserCdmCast() {
14 player_tracker_
.NotifyCdmUnset();
17 int BrowserCdmCast::RegisterPlayer(const base::Closure
& new_key_cb
,
18 const base::Closure
& cdm_unset_cb
) {
19 return player_tracker_
.RegisterPlayer(new_key_cb
, cdm_unset_cb
);
22 void BrowserCdmCast::UnregisterPlayer(int registration_id
) {
23 player_tracker_
.UnregisterPlayer(registration_id
);
26 void BrowserCdmCast::NotifyKeyAdded() {
27 player_tracker_
.NotifyNewKey();
31 } // namespace chromecast