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..6df0555300e6bbbe934a9137771e97b2a6627391 |
--- /dev/null |
+++ b/media/mojo/interfaces/remoting_common.mojom |
@@ -0,0 +1,27 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
miu
2017/06/27 00:23:49
Can you set the similarity setting lower to show t
xjz
2017/06/28 02:09:39
Done.
|
+// 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): Adds 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. |
+}; |