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

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: 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 // Starts discovery. No-op for MRPs which have already registered discovery
291 // listeners.
292 StartDiscovery();
289 }; 293 };
290 294
291 // Interface for a service which observes state changes across media 295 // Interface for a service which observes state changes across media
292 // sources, sinks, and issues. 296 // sources, sinks, and issues.
293 interface MediaRouter { 297 interface MediaRouter {
294 298
295 // Represents overall media sink availability states. 299 // Represents overall media sink availability states.
296 // UNAVAILABLE - No sinks are available. 300 // UNAVAILABLE - No sinks are available.
297 // PER_SOURCE - Sinks are available, but are only compatible with specific 301 // PER_SOURCE - Sinks are available, but are only compatible with specific
298 // media sources. 302 // media sources.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // changed to |state|. 350 // changed to |state|.
347 OnPresentationConnectionStateChanged( 351 OnPresentationConnectionStateChanged(
348 string route_id, PresentationConnectionState state); 352 string route_id, PresentationConnectionState state);
349 353
350 // Called when the presentation connected to route |route_id| has closed. 354 // Called when the presentation connected to route |route_id| has closed.
351 OnPresentationConnectionClosed( 355 OnPresentationConnectionClosed(
352 string route_id, PresentationConnectionCloseReason reason, 356 string route_id, PresentationConnectionCloseReason reason,
353 string message); 357 string message);
354 }; 358 };
355 359
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698