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

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

Issue 1862913004: [Media Router] Wire through a new MRPM call to update media sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed (and simplified) tests. Created 4 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.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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 // Indicates that a PresentationConnection that was connected to route 280 // Indicates that a PresentationConnection that was connected to route
281 // |route_id| has been closed (via .close(), garbage collection or 281 // |route_id| has been closed (via .close(), garbage collection or
282 // navigation). 282 // navigation).
283 DetachRoute(string route_id); 283 DetachRoute(string route_id);
284 284
285 // Enables mDNS discovery. No-op if mDNS discovery is already enabled. 285 // Enables mDNS discovery. No-op if mDNS discovery is already enabled.
286 // Calling this will trigger a firewall prompt on Windows if there is not 286 // Calling this will trigger a firewall prompt on Windows if there is not
287 // already a firewall rule for mDNS. 287 // already a firewall rule for mDNS.
288 EnableMdnsDiscovery(); 288 EnableMdnsDiscovery();
289
290 // Update media sinks capable of displaying |media_source|.
imcheng 2016/04/15 18:37:02 s/Update/Updates
amp 2016/04/15 20:29:33 Done.
291 UpdateMediaSinks(string media_source);
289 }; 292 };
290 293
291 // Interface for a service which observes state changes across media 294 // Interface for a service which observes state changes across media
292 // sources, sinks, and issues. 295 // sources, sinks, and issues.
293 interface MediaRouter { 296 interface MediaRouter {
294 297
295 // Represents overall media sink availability states. 298 // Represents overall media sink availability states.
296 // UNAVAILABLE - No sinks are available. 299 // UNAVAILABLE - No sinks are available.
297 // PER_SOURCE - Sinks are available, but are only compatible with specific 300 // PER_SOURCE - Sinks are available, but are only compatible with specific
298 // media sources. 301 // media sources.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // changed to |state|. 349 // changed to |state|.
347 OnPresentationConnectionStateChanged( 350 OnPresentationConnectionStateChanged(
348 string route_id, PresentationConnectionState state); 351 string route_id, PresentationConnectionState state);
349 352
350 // Called when the presentation connected to route |route_id| has closed. 353 // Called when the presentation connected to route |route_id| has closed.
351 OnPresentationConnectionClosed( 354 OnPresentationConnectionClosed(
352 string route_id, PresentationConnectionCloseReason reason, 355 string route_id, PresentationConnectionCloseReason reason,
353 string message); 356 string message);
354 }; 357 };
355 358
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698