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..7fd66fa4017a62531b7d508fd9043eab1f48f168 100644 |
--- a/chrome/browser/media/router/media_router.h |
+++ b/chrome/browser/media/router/media_router.h |
@@ -82,12 +82,17 @@ 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|. |
+ // This is called for Blob / ArrayBuffer / ArrayBufferView types. |
+ virtual void SendRouteBinaryMessage( |
+ const MediaRoute::Id& route_id, |
+ scoped_ptr<std::vector<uint8>> data, |
+ 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. |