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

Side by Side Diff: chrome/browser/media/router/mojo/media_router.mojom

Issue 2679893002: [Media Router] Add ProvideSinks() Mojo API (Closed)
Patch Set: resolve code review comments from Derek and Mark Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module media_router.mojom; 5 module media_router.mojom;
6 6
7 import "mojo/common/time.mojom"; 7 import "mojo/common/time.mojom";
8 import "url/mojo/origin.mojom"; 8 import "url/mojo/origin.mojom";
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Indicates that the Media Router is interested in finding a sink that 355 // Indicates that the Media Router is interested in finding a sink that
356 // matches |search_criteria| and is compatible with the source urn 356 // matches |search_criteria| and is compatible with the source urn
357 // |media_source|. |search_criteria| should contain an exact copy of the user 357 // |media_source|. |search_criteria| should contain an exact copy of the user
358 // input. The user's current domain is also used to search. The domain is the 358 // input. The user's current domain is also used to search. The domain is the
359 // hosted domain of the user's signed-in identity, or empty if the user has no 359 // hosted domain of the user's signed-in identity, or empty if the user has no
360 // domain or is not signed in. 360 // domain or is not signed in.
361 SearchSinks(string sink_id, 361 SearchSinks(string sink_id,
362 string media_source, 362 string media_source,
363 SinkSearchCriteria search_criteria) => 363 SinkSearchCriteria search_criteria) =>
364 (string sink_id); 364 (string sink_id);
365
366 // Called when the list of MediaSinks discovered by Media Router has been
367 // updated. The sinks are supplied to the MediaRouteProvider so that they can
368 // be used for other operations, such as route creation.
369 ProvideSinks(string provider_name, array<MediaSink> sinks);
365 }; 370 };
366 371
367 // Interface for a service which observes state changes across media 372 // Interface for a service which observes state changes across media
368 // sources, sinks, and issues. 373 // sources, sinks, and issues.
369 interface MediaRouter { 374 interface MediaRouter {
370 375
371 // Represents overall media sink availability states. 376 // Represents overall media sink availability states.
372 // UNAVAILABLE - No sinks are available. 377 // UNAVAILABLE - No sinks are available.
373 // PER_SOURCE - Sinks are available, but are only compatible with specific 378 // PER_SOURCE - Sinks are available, but are only compatible with specific
374 // media sources. 379 // media sources.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 435
431 // Called when the a batch of messages arrives from the media sink for the 436 // Called when the a batch of messages arrives from the media sink for the
432 // route given by |route_id|. 437 // route given by |route_id|.
433 // |StartListeningForRouteMessages| must be called first in order to receive 438 // |StartListeningForRouteMessages| must be called first in order to receive
434 // messages. 439 // messages.
435 // |route_id|: ID of route of the messages. 440 // |route_id|: ID of route of the messages.
436 // |messages|: A non-empty list of messages received. 441 // |messages|: A non-empty list of messages received.
437 OnRouteMessagesReceived(string route_id, 442 OnRouteMessagesReceived(string route_id,
438 array<RouteMessage> messages); 443 array<RouteMessage> messages);
439 }; 444 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698