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

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

Issue 2522983002: Add Media Router result code for user cancellation (Closed)
Patch Set: Add missing conversion code Created 4 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
« no previous file with comments | « no previous file | chrome/browser/media/router/mojo/media_router_type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.mojom; 5 module media_router.mojom;
6 6
7 import "mojo/common/common_custom_types.mojom"; 7 import "mojo/common/common_custom_types.mojom";
8 8
9 // Represents an output sink to which media can be routed. 9 // Represents an output sink to which media can be routed.
10 struct MediaSink { 10 struct MediaSink {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // differently. 120 // differently.
121 string input; 121 string input;
122 // The user's current hosted domain. 122 // The user's current hosted domain.
123 string domain; 123 string domain;
124 }; 124 };
125 125
126 // Keep in sync with: 126 // Keep in sync with:
127 // - RouteRequestResult::ResultCode in route_request_result.h 127 // - RouteRequestResult::ResultCode in route_request_result.h
128 // - MediaRouteProviderResult enum in tools/metrics/histograms.xml. 128 // - MediaRouteProviderResult enum in tools/metrics/histograms.xml.
129 // - mr.RouteRequestResultCode in route_request_error.js 129 // - mr.RouteRequestResultCode in route_request_error.js
130 // - RouteRequestResultCodeFromMojo in media_router_type_converters.cc
130 enum RouteRequestResultCode { 131 enum RouteRequestResultCode {
131 UNKNOWN_ERROR, 132 UNKNOWN_ERROR,
132 OK, 133 OK,
133 TIMED_OUT, 134 TIMED_OUT,
134 ROUTE_NOT_FOUND, 135 ROUTE_NOT_FOUND,
135 SINK_NOT_FOUND, 136 SINK_NOT_FOUND,
136 INVALID_ORIGIN, 137 INVALID_ORIGIN,
137 INCOGNITO_MISMATCH, 138 INCOGNITO_MISMATCH,
138 NO_SUPPORTED_PROVIDER 139 NO_SUPPORTED_PROVIDER,
140 CANCELLED
139 // New values must be added here. 141 // New values must be added here.
140 }; 142 };
141 143
142 // Modeled after the MediaRouter interface defined in 144 // Modeled after the MediaRouter interface defined in
143 // chrome/browser/media/router/media_router.h 145 // chrome/browser/media/router/media_router.h
144 interface MediaRouteProvider { 146 interface MediaRouteProvider {
145 // Creates a media route from |media_source| to the sink given by |sink_id|. 147 // Creates a media route from |media_source| to the sink given by |sink_id|.
146 // 148 //
147 // The presentation ID of the route created will be |presentation_id|, but it 149 // The presentation ID of the route created will be |presentation_id|, but it
148 // may be overridden by a provider implementation. The presentation ID will 150 // may be overridden by a provider implementation. The presentation ID will
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 387
386 // Called when the a batch of messages arrives from the media sink for the 388 // Called when the a batch of messages arrives from the media sink for the
387 // route given by |route_id|. 389 // route given by |route_id|.
388 // |StartListeningForRouteMessages| must be called first in order to receive 390 // |StartListeningForRouteMessages| must be called first in order to receive
389 // messages. 391 // messages.
390 // |route_id|: ID of route of the messages. 392 // |route_id|: ID of route of the messages.
391 // |messages|: A non-empty list of messages received. 393 // |messages|: A non-empty list of messages received.
392 OnRouteMessagesReceived(string route_id, 394 OnRouteMessagesReceived(string route_id,
393 array<RouteMessage> messages); 395 array<RouteMessage> messages);
394 }; 396 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/router/mojo/media_router_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698