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

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: updated UT to verify the |data| 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..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.
« no previous file with comments | « chrome/browser/media/android/router/media_router_android.cc ('k') | chrome/browser/media/router/media_router.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698