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

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

Issue 2679893002: [Media Router] Add ProvideSinks() Mojo API (Closed)
Patch Set: resolve code review comments from Derek and Mark Created 3 years, 10 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 0f8fd4b7386f322a16b2950c04efea0b576f99e2..67c001366c557b697a6012e40f6292f66fc08e80 100644
--- a/chrome/browser/media/router/media_router.h
+++ b/chrome/browser/media/router/media_router.h
@@ -14,6 +14,7 @@
#include "base/callback_list.h"
#include "base/memory/scoped_vector.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"
@@ -172,6 +173,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

Powered by Google App Engine
This is Rietveld 408576698