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

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

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 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 "net/interfaces/ip_address.mojom"; 8 import "net/interfaces/ip_address.mojom";
9 import "url/mojo/origin.mojom"; 9 import "url/mojo/origin.mojom";
10 import "url/mojo/url.mojom"; 10 import "url/mojo/url.mojom";
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Indicates that the Media Router is interested in finding a sink that 357 // Indicates that the Media Router is interested in finding a sink that
358 // matches |search_criteria| and is compatible with the source urn 358 // matches |search_criteria| and is compatible with the source urn
359 // |media_source|. |search_criteria| should contain an exact copy of the user 359 // |media_source|. |search_criteria| should contain an exact copy of the user
360 // input. The user's current domain is also used to search. The domain is the 360 // input. The user's current domain is also used to search. The domain is the
361 // hosted domain of the user's signed-in identity, or empty if the user has no 361 // hosted domain of the user's signed-in identity, or empty if the user has no
362 // domain or is not signed in. 362 // domain or is not signed in.
363 SearchSinks(string sink_id, 363 SearchSinks(string sink_id,
364 string media_source, 364 string media_source,
365 SinkSearchCriteria search_criteria) => 365 SinkSearchCriteria search_criteria) =>
366 (string sink_id); 366 (string sink_id);
367
368 // Called when the list of MediaSinks discovered by Media Router has been
369 // updated. The sinks are supplied to the MediaRouteProvider so that they can
370 // be used for other operations, such as route creation.
371 ProvideSinks(string provider_name, array<MediaSink> sinks);
367 }; 372 };
368 373
369 // Interface for a service which observes state changes across media 374 // Interface for a service which observes state changes across media
370 // sources, sinks, and issues. 375 // sources, sinks, and issues.
371 interface MediaRouter { 376 interface MediaRouter {
372 377
373 // Represents overall media sink availability states. 378 // Represents overall media sink availability states.
374 // UNAVAILABLE - No sinks are available. 379 // UNAVAILABLE - No sinks are available.
375 // PER_SOURCE - Sinks are available, but are only compatible with specific 380 // PER_SOURCE - Sinks are available, but are only compatible with specific
376 // media sources. 381 // media sources.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 437
433 // Called when the a batch of messages arrives from the media sink for the 438 // Called when the a batch of messages arrives from the media sink for the
434 // route given by |route_id|. 439 // route given by |route_id|.
435 // |StartListeningForRouteMessages| must be called first in order to receive 440 // |StartListeningForRouteMessages| must be called first in order to receive
436 // messages. 441 // messages.
437 // |route_id|: ID of route of the messages. 442 // |route_id|: ID of route of the messages.
438 // |messages|: A non-empty list of messages received. 443 // |messages|: A non-empty list of messages received.
439 OnRouteMessagesReceived(string route_id, 444 OnRouteMessagesReceived(string route_id,
440 array<RouteMessage> messages); 445 array<RouteMessage> messages);
441 }; 446 };
OLDNEW
« no previous file with comments | « chrome/browser/media/router/mock_media_router.h ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698