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

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: 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 a649222931240025b86bf099f015a97e7e421e50..32de4746423ccd49de59bc2542e303868c899ffc 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -81,12 +81,16 @@ class MediaRouter {
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|.
+ virtual void SendRouteBinaryMessage(
+ const MediaRoute::Id& route_id,
+ const std::vector<uint8_t>& 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.
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router.mojom » ('j') | chrome/browser/media/router/media_router_mojo_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698