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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/RouteController.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/RouteController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/RouteController.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/RouteController.java
index 346a55af9d7315cfe0c5dfc6d4420374dc873975..de2523735aa1e27ead07bdcebecdd1c497e1c4d9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/RouteController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/RouteController.java
@@ -22,6 +22,14 @@ public interface RouteController {
void sendStringMessage(String message, int nativeCallbackId);
/**
+ * Sends a binary message to the route and invokes the {@link RouteDelegate} with the
+ * passed callback id on success or failure.
+ * @param data The binary message to send.
+ * @param nativeCallbackId The id of the callback handling the result.
+ */
+ void sendBinaryMessage(byte[] data, int nativeCallbackId);
+
+ /**
* @return the source id for the route.
*/
String getSourceId();

Powered by Google App Engine
This is Rietveld 408576698