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

Side by Side Diff: media/remoting/sink_availability_observer.cc

Issue 2643253003: Media Remoting Clean-up: Less-redundant naming, style consistency, etc. (Closed)
Patch Set: REBASE Created 3 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
« no previous file with comments | « media/remoting/sink_availability_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "media/remoting/remoting_sink_observer.h" 5 #include "media/remoting/sink_availability_observer.h"
6 6
7 namespace media { 7 namespace media {
8 namespace remoting {
8 9
9 RemotingSinkObserver::RemotingSinkObserver( 10 SinkAvailabilityObserver::SinkAvailabilityObserver(
10 mojom::RemotingSourceRequest source_request, 11 mojom::RemotingSourceRequest source_request,
11 mojom::RemoterPtr remoter) 12 mojom::RemoterPtr remoter)
12 : binding_(this, std::move(source_request)), remoter_(std::move(remoter)) {} 13 : binding_(this, std::move(source_request)), remoter_(std::move(remoter)) {}
13 14
14 RemotingSinkObserver::~RemotingSinkObserver() {} 15 SinkAvailabilityObserver::~SinkAvailabilityObserver() {}
15 16
16 void RemotingSinkObserver::OnSinkAvailable( 17 void SinkAvailabilityObserver::OnSinkAvailable(
17 mojom::RemotingSinkCapabilities capabilities) { 18 mojom::RemotingSinkCapabilities capabilities) {
18 sink_capabilities_ = capabilities; 19 sink_capabilities_ = capabilities;
19 } 20 }
20 21
21 void RemotingSinkObserver::OnSinkGone() { 22 void SinkAvailabilityObserver::OnSinkGone() {
22 sink_capabilities_ = mojom::RemotingSinkCapabilities::NONE; 23 sink_capabilities_ = mojom::RemotingSinkCapabilities::NONE;
23 } 24 }
24 25
26 } // namespace remoting
25 } // namespace media 27 } // namespace media
OLDNEW
« no previous file with comments | « media/remoting/sink_availability_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698