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

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

Issue 1177073003: [MediaRouter] Update MR-2-Extension's PostMessage to return boolean. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename SendMessage to SendRouteMessage Created 5 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0699d3f86bf8c26371cc08a93a19e59f515572da..946dd127c6f0f3611cb0eb8e24a4f647660467bb 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -35,6 +35,8 @@ using MediaRouteResponseCallback =
// posting messages or closing).
class MediaRouter {
public:
+ using SendRouteMessageCallback = base::Callback<void(bool sent)>;
+
virtual ~MediaRouter() {}
// Creates a media route from |source_id| to |sink_id|.
@@ -49,8 +51,9 @@ class MediaRouter {
// Posts |message| to a MediaSink connected via MediaRoute with |route_id|.
// TODO(imcheng): Support additional data types: Blob, ArrayBuffer,
// ArrayBufferView.
- virtual void PostMessage(const MediaRoute::Id& route_id,
- const std::string& message) = 0;
+ virtual void SendRouteMessage(const MediaRoute::Id& route_id,
+ const std::string& message,
+ const SendRouteMessageCallback& callback) = 0;
// Clears the issue with the id |issue_id|.
virtual void ClearIssue(const Issue::Id& issue_id) = 0;
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698