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

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

Issue 2145983003: [Media Router] Adds return value to mojo MediaRouteProvider::TerminateRoute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patch Created 4 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.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 string route_id, 222 string route_id,
223 string presentation_id, 223 string presentation_id,
224 string origin, 224 string origin,
225 int32 tab_id, 225 int32 tab_id,
226 int64 timeout_millis, 226 int64 timeout_millis,
227 bool off_the_record) => 227 bool off_the_record) =>
228 (MediaRoute? route, 228 (MediaRoute? route,
229 string? error_text, 229 string? error_text,
230 RouteRequestResultCode result_code); 230 RouteRequestResultCode result_code);
231 231
232 // Terminates the route specified by |route_id|. 232 // Terminates the route specified by |route_id|. If the route was terminated
233 TerminateRoute(string route_id); 233 // successfully, |result_code| is set to OK and |error_text| is null.
234 // Otherwise, |result_code| is an error code and |error_text| describes the
235 // error.
236 TerminateRoute(string route_id) =>
237 (string? error_text, RouteRequestResultCode result_code);
234 238
235 // Sends |message| via the media route |media_route_id|. 239 // Sends |message| via the media route |media_route_id|.
236 // If the operation was successful, |sent| is true; otherwise it is false. 240 // If the operation was successful, |sent| is true; otherwise it is false.
237 SendRouteMessage(string media_route_id, string message) => (bool sent); 241 SendRouteMessage(string media_route_id, string message) => (bool sent);
238 242
239 // Sends |data| via the media route |media_route_id|. 243 // Sends |data| via the media route |media_route_id|.
240 // If the operation was successful, |sent| is true; otherwise it is false. 244 // If the operation was successful, |sent| is true; otherwise it is false.
241 SendRouteBinaryMessage(string media_route_id, array<uint8> data) 245 SendRouteBinaryMessage(string media_route_id, array<uint8> data)
242 => (bool sent); 246 => (bool sent);
243 247
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // changed to |state|. 373 // changed to |state|.
370 OnPresentationConnectionStateChanged( 374 OnPresentationConnectionStateChanged(
371 string route_id, PresentationConnectionState state); 375 string route_id, PresentationConnectionState state);
372 376
373 // Called when the presentation connected to route |route_id| has closed. 377 // Called when the presentation connected to route |route_id| has closed.
374 OnPresentationConnectionClosed( 378 OnPresentationConnectionClosed(
375 string route_id, PresentationConnectionCloseReason reason, 379 string route_id, PresentationConnectionCloseReason reason,
376 string message); 380 string message);
377 }; 381 };
378 382
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698