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.
5 #include "chrome/browser/media/router/media_sinks_observer.h"
7 #include "base/logging.h"
8 #include "chrome/browser/media/router/media_router.h"
10 namespace media_router
{
12 MediaSinksObserver::MediaSinksObserver(MediaRouter
* router
,
13 const MediaSource
& source
)
14 : source_(source
), router_(router
) {
16 router_
->RegisterMediaSinksObserver(this);
19 MediaSinksObserver::~MediaSinksObserver() {
20 router_
->UnregisterMediaSinksObserver(this);
23 } // namespace media_router