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

Unified Diff: media/remoting/sink_availability_observer.h

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/shared_session.cc ('k') | media/remoting/sink_availability_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/sink_availability_observer.h
diff --git a/media/remoting/remoting_sink_observer.h b/media/remoting/sink_availability_observer.h
similarity index 68%
rename from media/remoting/remoting_sink_observer.h
rename to media/remoting/sink_availability_observer.h
index dd4df28535fcd07d148b56e8ff2bdc0e8e792749..cfd38397f7835afa64be48defc303249b1ac27ba 100644
--- a/media/remoting/remoting_sink_observer.h
+++ b/media/remoting/sink_availability_observer.h
@@ -2,21 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_REMOTING_REMOTING_SINK_OBSERVER_H_
-#define MEDIA_REMOTING_REMOTING_SINK_OBSERVER_H_
+#ifndef MEDIA_REMOTING_SINK_AVAILABILITY_OBSERVER_H_
+#define MEDIA_REMOTING_SINK_AVAILABILITY_OBSERVER_H_
#include "media/mojo/interfaces/remoting.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace media {
+namespace remoting {
-// This calss is a pure observer of remoting sink availability to indicate
-// whether a remoting session can be started.
-class RemotingSinkObserver final : public mojom::RemotingSource {
+// Implements the RemotingSource interface for the sole purpose of monitoring
+// sink availability status.
+class SinkAvailabilityObserver final : public mojom::RemotingSource {
public:
- RemotingSinkObserver(mojom::RemotingSourceRequest source_request,
- mojom::RemoterPtr remoter);
- ~RemotingSinkObserver() override;
+ SinkAvailabilityObserver(mojom::RemotingSourceRequest source_request,
+ mojom::RemoterPtr remoter);
+ ~SinkAvailabilityObserver() override;
mojom::RemotingSinkCapabilities sink_capabilities() const {
return sink_capabilities_;
@@ -44,9 +45,10 @@ class RemotingSinkObserver final : public mojom::RemotingSource {
mojom::RemotingSinkCapabilities sink_capabilities_ =
mojom::RemotingSinkCapabilities::NONE;
- DISALLOW_COPY_AND_ASSIGN(RemotingSinkObserver);
+ DISALLOW_COPY_AND_ASSIGN(SinkAvailabilityObserver);
};
+} // namespace remoting
} // namespace media
-#endif // MEDIA_REMOTING_REMOTING_SINK_OBSERVER_H_
+#endif // MEDIA_REMOTING_SINK_AVAILABILITY_OBSERVER_H_
« no previous file with comments | « media/remoting/shared_session.cc ('k') | media/remoting/sink_availability_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698