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

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

Issue 2679893002: [Media Router] Add ProvideSinks() Mojo API (Closed)
Patch Set: fix android compile error Created 3 years, 8 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 27f3d0d805f1934cf2008982a85dd7d9ffc00df3..570a439b523d3df6c8319b54e55059f5a16934a8 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/router/discovery/media_sink_internal.h"
#include "chrome/browser/media/router/issue.h"
#include "chrome/browser/media/router/media_route.h"
#include "chrome/browser/media/router/media_sink.h"
@@ -171,6 +172,13 @@ class MediaRouter : public KeyedService {
const std::string& domain,
const MediaSinkSearchResponseCallback& sink_callback) = 0;
+ // Notifies the Media Router that the list of MediaSinks discovered by a
+ // MediaSinkService has been updated.
+ // |provider_name|: Name of the MediaSinkService providing the sinks.
+ // |sinks|: sinks discovered by MediaSinkService.
+ virtual void ProvideSinks(const std::string& provider_name,
+ const std::vector<MediaSinkInternal>& sinks) = 0;
+
// Adds |callback| to listen for state changes for presentation connected to
// |route_id|. The returned Subscription object is owned by the caller.
// |callback| will be invoked whenever there are state changes, until the
« no previous file with comments | « chrome/browser/media/android/router/media_router_android.cc ('k') | chrome/browser/media/router/mock_media_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698