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

Unified Diff: media/mojo/interfaces/remoting_common.mojom

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Fix compile failure on Android bots. Created 3 years, 6 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
Index: media/mojo/interfaces/remoting_common.mojom
diff --git a/media/mojo/interfaces/remoting_common.mojom b/media/mojo/interfaces/remoting_common.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6595f62aa037f4a3db16b107170f61583362b56d
--- /dev/null
+++ b/media/mojo/interfaces/remoting_common.mojom
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module media.mojom;
+
+enum RemotingStopReason {
+ ROUTE_TERMINATED, // User-initiated disconnect, etc.
+ LOCAL_PLAYBACK, // Media switched back to local playback.
+ SOURCE_GONE, // RemotingSource has been destroyed.
+ MESSAGE_SEND_FAILED, // Failed to send a message to the sink.
+ DATA_SEND_FAILED, // Failed to consume from a data pipe or send to the sink.
+ UNEXPECTED_FAILURE, // Unexpected failure or inconsistent state encountered.
+};
+
+// TODO(xjz): Add capabilities with supported Audio/Video Codecs.
+enum RemotingSinkCapabilities {
+ NONE,
+ RENDERING_ONLY,
+ CONTENT_DECRYPTION_AND_RENDERING,
+};
+
+enum RemotingStartFailReason {
+ CANNOT_START_MULTIPLE, // Remoting was already active.
+ ROUTE_TERMINATED, // User-initated disconnect while starting remoting.
+ SERVICE_NOT_CONNECTED, // Mirror service was not connected.
+ SERVICE_START_REMOTING_ERROR, // Failed to start remoting in mirror service.
+};

Powered by Google App Engine
This is Rietveld 408576698