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

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

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Fix compile failure on Android bots. Created 3 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
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 00b583edcc690abdf65abd4f8be260e194d0fa02..009a83307a40db59cd738ded2a279bf147a45be7 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/callback_list.h"
#include "base/time/time.h"
+#include "chrome/browser/media/cast_remoting_connector.h"
#include "chrome/browser/media/router/route_message_observer.h"
#include "chrome/common/media_router/discovery/media_sink_internal.h"
#include "chrome/common/media_router/issue.h"
@@ -199,6 +200,16 @@ class MediaRouter : public KeyedService {
virtual scoped_refptr<MediaRouteController> GetRouteController(
const MediaRoute::Id& route_id) = 0;
+ // Register/UnRegister a CastRemotingConnector with the |tab_id|. For a given
imcheng 2017/06/22 01:13:27 Registers/unregisters
xjz 2017/06/23 19:02:41 Done.
+ // |tab_id|, only one CastRemotingConnector can be registered. The registered
+ // CastRemotingConnector should be removed before it is destroyed.
+ virtual void RegisterRemotingSource(
+ int32_t tab_id,
+ CastRemotingConnector* remoting_source) = 0;
+ virtual void UnRegisterRemotingSource(
imcheng 2017/06/22 01:13:27 s/UnRegister/Unregister
xjz 2017/06/23 19:02:41 Done.
+ int32_t tab_id,
+ CastRemotingConnector* remoting_source) = 0;
+
private:
friend class IssuesObserver;
friend class MediaSinksObserver;

Powered by Google App Engine
This is Rietveld 408576698