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. |