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

Unified Diff: media/mojo/interfaces/remoting.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.mojom
diff --git a/media/mojo/interfaces/remoting.mojom b/media/mojo/interfaces/remoting.mojom
index ba218f31f3791e91c28e72f83bbd2f297792ecd1..4e74e174511ca36a8ddcdafe68c8ad8a550b771b 100644
--- a/media/mojo/interfaces/remoting.mojom
+++ b/media/mojo/interfaces/remoting.mojom
@@ -4,6 +4,8 @@
module media.mojom;
+import "media/mojo/interfaces/remoting_common.mojom";
+
interface RemoterFactory {
// Create a new Remoter associated with the given RemotingSource and bind it
// to the given interface request. The RemotingSource will be notified when
@@ -41,15 +43,6 @@ interface RemotingDataStreamSender {
CancelInFlightData();
};
-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.
-};
-
// Interface used by the source to start/stop remoting and send data to the
// sink.
interface Remoter {
@@ -80,17 +73,6 @@ interface Remoter {
SendMessageToSink(array<uint8> message);
};
-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.
-};
-
// Interface used for sending notifications back to the local source's control
// logic, and to pass messages from the sink back to the local media pipeline.
interface RemotingSource {

Powered by Google App Engine
This is Rietveld 408576698