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

Side by Side Diff: chrome/common/media_router/mojo/media_router.mojom

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Add interface change for later CL passing receiver capabilities. Created 3 years, 5 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 "chrome/common/media_router/mojo/media_controller.mojom"; 7 import "chrome/common/media_router/mojo/media_controller.mojom";
8 import "chrome/common/media_router/mojo/media_status.mojom"; 8 import "chrome/common/media_router/mojo/media_status.mojom";
9 import "media/mojo/interfaces/mirror_service_remoting.mojom";
9 import "mojo/common/time.mojom"; 10 import "mojo/common/time.mojom";
10 import "net/interfaces/ip_address.mojom"; 11 import "net/interfaces/ip_address.mojom";
11 import "url/mojo/origin.mojom"; 12 import "url/mojo/origin.mojom";
12 import "url/mojo/url.mojom"; 13 import "url/mojo/url.mojom";
13 14
14 // Represents an output sink to which media can be routed. 15 // Represents an output sink to which media can be routed.
15 struct MediaSink { 16 struct MediaSink {
16 enum IconType { 17 enum IconType {
17 CAST, 18 CAST,
18 CAST_AUDIO, 19 CAST_AUDIO,
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 string message); 465 string message);
465 466
466 // Called when the a batch of messages arrives from the media sink for the 467 // Called when the a batch of messages arrives from the media sink for the
467 // route given by |route_id|. 468 // route given by |route_id|.
468 // |StartListeningForRouteMessages| must be called first in order to receive 469 // |StartListeningForRouteMessages| must be called first in order to receive
469 // messages. 470 // messages.
470 // |route_id|: ID of route of the messages. 471 // |route_id|: ID of route of the messages.
471 // |messages|: A non-empty list of messages received. 472 // |messages|: A non-empty list of messages received.
472 OnRouteMessagesReceived(string route_id, 473 OnRouteMessagesReceived(string route_id,
473 array<RouteMessage> messages); 474 array<RouteMessage> messages);
475
476 // Called when a MediaRemoter for a tab with |tab_id| is started. |remoter|
477 // can be used to access the MediaRemoter to control a media remoting session
478 // and send RPC messages to the remote device. |remoting_source| is bound to
479 // receive the updates/messages from MediaRemoter.
480 OnMediaRemoterCreated(int32 tab_id, media.mojom.MirrorServiceRemoter remoter,
481 media.mojom.MirrorServiceRemotingSource& remoting_source);
474 }; 482 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698