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

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

Issue 1415103006: Non-Local Join for Media Router and Presentation API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Unit Tests Created 5 years, 1 month 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.interfaces; 5 module media_router.interfaces;
6 6
7 // Represents an output sink to which media can be routed. 7 // Represents an output sink to which media can be routed.
8 struct MediaSink { 8 struct MediaSink {
9 enum IconType { 9 enum IconType {
10 CAST, 10 CAST,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 => (bool sent); 154 => (bool sent);
155 155
156 // Starts querying for sinks capable of displaying |media_source|. 156 // Starts querying for sinks capable of displaying |media_source|.
157 StartObservingMediaSinks(string media_source); 157 StartObservingMediaSinks(string media_source);
158 158
159 // Stops querying sinks for |media_source|. 159 // Stops querying sinks for |media_source|.
160 StopObservingMediaSinks(string media_source); 160 StopObservingMediaSinks(string media_source);
161 161
162 // Starts reporting the state of active media routes via 162 // Starts reporting the state of active media routes via
163 // OnRoutesUpdated(). Querying will continue until 163 // OnRoutesUpdated(). Querying will continue until
164 // StopObservingMediaRoutes() is called. 164 // StopObservingMediaRoutes() is called.
imcheng 2015/11/19 18:55:08 Please update comments.
matt.boetger 2015/11/24 19:45:23 Done.
165 StartObservingMediaRoutes(); 165 StartObservingMediaRoutes(string media_source);
166 166
167 // Stops querying the state of all media routes. 167 // Stops querying the state of all media routes.
imcheng 2015/11/19 18:55:08 ditto
matt.boetger 2015/11/24 19:45:23 Done.
168 StopObservingMediaRoutes(); 168 StopObservingMediaRoutes(string media_source);
169 169
170 // Called when the MediaRouter is ready to get the next batch of messages 170 // Called when the MediaRouter is ready to get the next batch of messages
171 // associated with |route_id|. 171 // associated with |route_id|.
172 // |messages| returned will contain the batch of messages. 172 // |messages| returned will contain the batch of messages.
173 // |messages| will be empty if |StopListeningForRouteMessages| was invoked. 173 // |messages| will be empty if |StopListeningForRouteMessages| was invoked.
174 // |error| indicates if a permanent error occurred. If true, then subsequent 174 // |error| indicates if a permanent error occurred. If true, then subsequent
175 // calls will also return with |error| being true. 175 // calls will also return with |error| being true.
176 ListenForRouteMessages(string route_id) => 176 ListenForRouteMessages(string route_id) =>
177 (array<RouteMessage> messages, bool error); 177 (array<RouteMessage> messages, bool error);
178 178
(...skipping 28 matching lines...) Expand all
207 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => 207 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) =>
208 (string instance_id); 208 (string instance_id);
209 209
210 // Called when the Media Route Manager receives a new list of sinks. 210 // Called when the Media Route Manager receives a new list of sinks.
211 OnSinksReceived(string media_source, array<MediaSink> sinks); 211 OnSinksReceived(string media_source, array<MediaSink> sinks);
212 212
213 // Called when issues are reported for media routes. 213 // Called when issues are reported for media routes.
214 OnIssue(Issue issue); 214 OnIssue(Issue issue);
215 215
216 // Called when list of routes has been updated. 216 // Called when list of routes has been updated.
217 OnRoutesUpdated(array<MediaRoute> routes); 217 OnRoutesUpdated(string media_source, array<MediaRoute> routes,
218 array<MediaRoute> joinableRoutes);
imcheng 2015/11/19 18:55:08 +2 indent
imcheng 2015/11/19 18:55:08 Since joinableRoutes is a subset of routes, would
matt.boetger 2015/11/24 19:45:23 Done.
matt.boetger 2015/11/24 19:45:23 Done.
218 219
219 // Called when the overall availability of media sinks has been updated. 220 // Called when the overall availability of media sinks has been updated.
220 OnSinkAvailabilityUpdated(SinkAvailability availability); 221 OnSinkAvailabilityUpdated(SinkAvailability availability);
221 }; 222 };
222 223
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698