Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: chrome/browser/media/router/media_routes_observer.cc

Issue 1415103006: Non-Local Join for Media Router and Presentation API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing ChromeOS System Tray Test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/media/router/media_routes_observer.h" 5 #include "chrome/browser/media/router/media_routes_observer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/media/router/media_router.h" 8 #include "chrome/browser/media/router/media_router.h"
9 9
10 namespace media_router { 10 namespace media_router {
11 11
12 MediaRoutesObserver::MediaRoutesObserver(MediaRouter* router) 12 MediaRoutesObserver::MediaRoutesObserver(MediaRouter* router,
13 : router_(router) { 13 const MediaSource::Id source_id)
14 : router_(router),
15 source_id_(source_id) {
14 DCHECK(router_); 16 DCHECK(router_);
15 router_->RegisterMediaRoutesObserver(this); 17 router_->RegisterMediaRoutesObserver(this);
16 } 18 }
17 19
18 MediaRoutesObserver::~MediaRoutesObserver() { 20 MediaRoutesObserver::~MediaRoutesObserver() {
19 router_->UnregisterMediaRoutesObserver(this); 21 router_->UnregisterMediaRoutesObserver(this);
20 } 22 }
21 23
22 } // namespace media_router 24 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_routes_observer.h ('k') | chrome/browser/media/router/mock_media_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698