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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java

Issue 2718073005: Revert of [Media Router] Remove binary messaging implementation. (Closed)
Patch Set: Created 3 years, 10 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: chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java
index a80dceaf4f46f7b58335114ffeb994f6ab3b84a1..e4884b9d9082e1ec9324a5fb4b629ef343850635 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java
@@ -81,4 +81,13 @@
* @param nativeCallbackId The id of the result callback tracked by the native side.
*/
void sendStringMessage(String routeId, String message, int nativeCallbackId);
+
+ /**
+ * Sends a binary message to the route with the given id. The route must be created by this
+ * provider.
+ * @param routeId The id of the route to send the message to.
+ * @param data The binary message to send.
+ * @param nativeCallbackId The id of the result callback tracked by the native side.
+ */
+ void sendBinaryMessage(String routeId, byte[] data, int nativeCallbackId);
}

Powered by Google App Engine
This is Rietveld 408576698