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

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

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Addressed imcheng's comments. Removed OnStarted/Failed interface. 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..48b855ccfccd9acf92757a0ca09a695d5aa75c8d 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,14 @@ class MediaRouter : public KeyedService {
virtual scoped_refptr<MediaRouteController> GetRouteController(
const MediaRoute::Id& route_id) = 0;
+ // Registers/Unregisters a CastRemotingConnector with the |tab_id|. For a
+ // given |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(int32_t tab_id) = 0;
+
private:
friend class IssuesObserver;
friend class MediaSinksObserver;

Powered by Google App Engine
This is Rietveld 408576698