Pass MimeHandlerViewGuest navigations to the embedder
[chromium-blink-merge.git] / chromecast / media / cdm / browser_cdm_cast.cc
blobbde43a47f24569980853f43bf2e0ea5ac82b8dea
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"
7 namespace chromecast {
8 namespace media {
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();
30 } // namespace media
31 } // namespace chromecast