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/media/router/presentation_connection_state_observer.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "chrome/browser/media/router/media_router.h" | |
9 | |
10 namespace media_router { | |
11 | |
12 PresentationConnectionStateObserver::PresentationConnectionStateObserver( | |
13 MediaRouter* router, | |
14 const MediaRoute::Id& route_id) | |
15 : router_(router), route_id_(route_id) { | |
16 DCHECK(router_); | |
17 router_->RegisterPresentationConnectionStateObserver(this); | |
18 } | |
19 | |
20 PresentationConnectionStateObserver::~PresentationConnectionStateObserver() { | |
21 router_->UnregisterPresentationConnectionStateObserver(this); | |
22 } | |
23 | |
24 } // namespace media_router | |
OLD | NEW |