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

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

Issue 1361763006: [Presentation API, Android] Plumbing SendBinaryMessage() from C++ MediaRouterAndroid to java side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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 213e2195957e846372b66383b21b8ae35b23310a..0694b866815c88821866092249b7d7a401218f57 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
@@ -71,4 +71,13 @@ public interface MediaRouteProvider {
* @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