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

Unified Diff: chrome/browser/media/router/media_router.h

Issue 1245213002: [MediaRouter] Implement send binary message from PSDImpl to MRPManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override in media_router_android Created 5 years, 5 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/browser/media/router/media_router.h
diff --git a/chrome/browser/media/router/media_router.h b/chrome/browser/media/router/media_router.h
index 7912cd5f10ce7067b410a277366eb3294b001831..dafc1e58f973015b848fde717ff0fb5e71c6ff81 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -82,12 +82,16 @@ class MediaRouter : public KeyedService {
virtual void CloseRoute(const MediaRoute::Id& route_id) = 0;
// Posts |message| to a MediaSink connected via MediaRoute with |route_id|.
- // TODO(imcheng): Support additional data types: Blob, ArrayBuffer,
- // ArrayBufferView.
virtual void SendRouteMessage(const MediaRoute::Id& route_id,
const std::string& message,
const SendRouteMessageCallback& callback) = 0;
+ // Sends |data| to a MediaSink connected via MediaRoute with |route_id|.
Kevin M 2015/07/22 18:31:50 Can you add some detail to the comment noting why
USE s.singapati at gmail.com 2015/07/23 19:52:53 Done.
+ virtual void SendRouteBinaryMessage(
+ const MediaRoute::Id& route_id,
+ const std::vector<uint8_t>& data,
Kevin M 2015/07/22 18:31:50 uint8
USE s.singapati at gmail.com 2015/07/23 19:52:53 Done.
+ const SendRouteMessageCallback& callback) = 0;
+
// Gets the next batch of messages from one of the routes in |route_ids|.
// |message_cb|: Invoked with a non-empty list of messages when there are
// messages, an empty list when messaging channel had error.

Powered by Google App Engine
This is Rietveld 408576698