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

Side by Side Diff: extensions/common/api/display_source.idl

Issue 1689913003: [chrome.displaySource] Simplify session error types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_source_session_notification
Patch Set: Created 4 years, 10 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 // The <code>chrome.displaySource</code> API creates a Display 5 // The <code>chrome.displaySource</code> API creates a Display
6 // session using WebMediaStreamTrack as sources. 6 // session using WebMediaStreamTrack as sources.
7 namespace displaySource { 7 namespace displaySource {
8 enum ErrorType { 8 enum ErrorType {
9 // Cannot create media pipeline from the given media stream which could be
10 // appropriate for a Display session (e.g., necessary codecs are missing
11 // on the platform).
12 create_media_pipeline_error,
13
14 // A new Display session cannot be started before the existing one is 9 // A new Display session cannot be started before the existing one is
15 // terminated. 10 // terminated.
16 exceeded_session_limit_error, 11 session_limit_error,
17 12
18 // Could not establish connection to the sink. 13 // The connection with sink cannot be established or has dropped unexpectedl y.
asargent_no_longer_on_chrome 2016/02/13 00:36:42 nit: please reflow to 80 chars
19 establish_connection_error, 14 connection_error,
20 15
21 // The capabilities of this Display Source and the connected 16 // The capabilities of this Display Source and the connected
22 // sink do not fit (e.g. the sink cannot play the media content of 17 // sink do not fit (e.g. the sink cannot play the media content of
23 // the formats given by the source). 18 // the formats given by the source).
24 capabilities_negotiation_error, 19 capabilities_negotiation_error,
25 20
26 // There was an error while packetizing and sending the media content. 21 // There was an error in media pipeline: while encoding, packetizing or
27 media_send_error, 22 // sending the media content.
28 23 media_pipeline_error,
29 // The TCP connection with sink has dropped unexpectedly.
30 connection_error,
31
32 // An unexpected message has arrived from the sink.
33 unexpected_message_error,
34 24
35 // The sink became unresponsive. 25 // The sink became unresponsive.
36 timeout_error, 26 timeout_error,
37 27
38 // Unspecified error. 28 // Unspecified error.
39 unknown_error 29 unknown_error
40 }; 30 };
41 31
42 dictionary ErrorInfo { 32 dictionary ErrorInfo {
43 ErrorType type; 33 ErrorType type;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Event fired when the Display session is terminated. 137 // Event fired when the Display session is terminated.
148 // |sinkId| Id of the peer sink 138 // |sinkId| Id of the peer sink
149 [nocompile] static void onSessionTerminated(long sinkId); 139 [nocompile] static void onSessionTerminated(long sinkId);
150 // Event fired when an error occurs. 140 // Event fired when an error occurs.
151 // |sinkId| Id of the peer sink 141 // |sinkId| Id of the peer sink
152 // |errorInfo| error description 142 // |errorInfo| error description
153 [nocompile] static void onSessionErrorOccured(long sinkId, 143 [nocompile] static void onSessionErrorOccured(long sinkId,
154 ErrorInfo errorInfo); 144 ErrorInfo errorInfo);
155 }; 145 };
156 }; 146 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698