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

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

Issue 1911183002: [Media Router] Implement an internal Media Routes observer. (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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 string? message; 112 string? message;
113 // Used when the |type| is BINARY. 113 // Used when the |type| is BINARY.
114 array<uint8>? data; 114 array<uint8>? data;
115 }; 115 };
116 116
117 // Maps to a ResultCode value in route_request_result.h 117 // Maps to a ResultCode value in route_request_result.h
118 // The enum defined here is a subset of those defined in route_request_result.h. 118 // The enum defined here is a subset of those defined in route_request_result.h.
119 enum RouteRequestResultCode { 119 enum RouteRequestResultCode {
120 UNKNOWN_ERROR, 120 UNKNOWN_ERROR,
121 OK, 121 OK,
122 TIMED_OUT 122 TIMED_OUT,
123 ROUTE_NOT_FOUND
123 }; 124 };
124 125
125 // Modeled after the MediaRouter interface defined in 126 // Modeled after the MediaRouter interface defined in
126 // chrome/browser/media/router/media_router.h 127 // chrome/browser/media/router/media_router.h
127 interface MediaRouteProvider { 128 interface MediaRouteProvider {
128 // Creates a media route from |media_source| to the sink given by |sink_id|. 129 // Creates a media route from |media_source| to the sink given by |sink_id|.
129 // 130 //
130 // The presentation ID of the route created will be |presentation_id|, but it 131 // The presentation ID of the route created will be |presentation_id|, but it
131 // may be overridden by a provider implementation. The presentation ID will 132 // may be overridden by a provider implementation. The presentation ID will
132 // be used by the presentation API to refer to the created route. 133 // be used by the presentation API to refer to the created route.
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // changed to |state|. 350 // changed to |state|.
350 OnPresentationConnectionStateChanged( 351 OnPresentationConnectionStateChanged(
351 string route_id, PresentationConnectionState state); 352 string route_id, PresentationConnectionState state);
352 353
353 // Called when the presentation connected to route |route_id| has closed. 354 // Called when the presentation connected to route |route_id| has closed.
354 OnPresentationConnectionClosed( 355 OnPresentationConnectionClosed(
355 string route_id, PresentationConnectionCloseReason reason, 356 string route_id, PresentationConnectionCloseReason reason,
356 string message); 357 string message);
357 }; 358 };
358 359
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698