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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/remoting/sink_availability_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/sink_availability_observer.cc
diff --git a/media/remoting/remoting_sink_observer.cc b/media/remoting/sink_availability_observer.cc
similarity index 63%
rename from media/remoting/remoting_sink_observer.cc
rename to media/remoting/sink_availability_observer.cc
index b5cb1bb06eb1529e4434196cac63a57338e124db..188f4f1e2f4103c83743cd5e50286776b477c1d9 100644
--- a/media/remoting/remoting_sink_observer.cc
+++ b/media/remoting/sink_availability_observer.cc
@@ -2,24 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "media/remoting/remoting_sink_observer.h"
+#include "media/remoting/sink_availability_observer.h"
namespace media {
+namespace remoting {
-RemotingSinkObserver::RemotingSinkObserver(
+SinkAvailabilityObserver::SinkAvailabilityObserver(
mojom::RemotingSourceRequest source_request,
mojom::RemoterPtr remoter)
: binding_(this, std::move(source_request)), remoter_(std::move(remoter)) {}
-RemotingSinkObserver::~RemotingSinkObserver() {}
+SinkAvailabilityObserver::~SinkAvailabilityObserver() {}
-void RemotingSinkObserver::OnSinkAvailable(
+void SinkAvailabilityObserver::OnSinkAvailable(
mojom::RemotingSinkCapabilities capabilities) {
sink_capabilities_ = capabilities;
}
-void RemotingSinkObserver::OnSinkGone() {
+void SinkAvailabilityObserver::OnSinkGone() {
sink_capabilities_ = mojom::RemotingSinkCapabilities::NONE;
}
+} // namespace remoting
} // namespace media
« 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