OLD | NEW |
---|---|
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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module mojo.media; | 6 module mojo.media; |
7 | 7 |
8 // TODO(johngro): When the new extensible MojoResult has been introduced, | 8 // TODO(johngro): When the new extensible MojoResult has been introduced, |
9 // redefine all of these results to be MojoResults which exist in the Media | 9 // redefine all of these results to be MojoResults which exist in the Media |
10 // domain. For now, comments are included about how the results will probably | 10 // domain. For now, comments are included about how the results will probably |
11 // be bucketed when the time for the transition comes. | 11 // be bucketed when the time for the transition comes. |
12 // | 12 // |
13 // see | 13 // see |
14 // https://docs.google.com/document/d/1A5QL20LzfRDOmsQKyHnA5HK1ZlmrLwAQO9y98GiDN yI/edit | 14 // https://docs.google.com/document/d/1A5QL20LzfRDOmsQKyHnA5HK1ZlmrLwAQO9y98GiDN yI/edit |
15 // | 15 // |
16 enum MediaResult { | 16 enum MediaResult { |
17 OK = 0, // direct map to MojoResult::OK | 17 OK = 0, // direct map to MojoResult::OK |
18 UNKNOWN_ERROR = -1, // bucket -> UNKNOWN | 18 UNKNOWN_ERROR = -1, // bucket -> UNKNOWN |
19 INTERNAL_ERROR = -2, // bucket -> INTERNAL | 19 INTERNAL_ERROR = -2, // bucket -> INTERNAL |
20 NOT_IMPLEMENTED = -3, // bucket -> UNIMPLEMENTED | 20 NOT_IMPLEMENTED = -3, // bucket -> UNIMPLEMENTED |
21 UNSUPPORTED_OPERATION = -4, // bucket -> UNIMPLEMENTED, FAILED_PRECON or | 21 UNSUPPORTED_OPERATION = -4, // bucket -> UNIMPLEMENTED, FAILED_PRECON or |
22 // INVALID_ARG, depending on reason | 22 // INVALID_ARG, depending on reason |
vtl
2016/02/29 23:45:37
This is a bit of a trainwreck.
jamesr
2016/02/29 23:49:02
yeah, this is awful. aligning just the comments wo
| |
23 UNSUPPORTED_CONFIG = -5, // bucket -> FAILED_PRECON or INVALID_ARG, or | 23 UNSUPPORTED_CONFIG = -5, // bucket -> FAILED_PRECON or INVALID_ARG, or |
24 // RESOURCE_EXHAUSTED | 24 // RESOURCE_EXHAUSTED |
25 INVALID_ARGUMENT = -6, // bucket -> INVALID_ARGUMENT | 25 INVALID_ARGUMENT = -6, // bucket -> INVALID_ARGUMENT |
26 INSUFFICIENT_RESOURCES = -7, // bucket -> RESOURCE_EXHAUSTED | 26 INSUFFICIENT_RESOURCES = -7, // bucket -> RESOURCE_EXHAUSTED |
27 BAD_STATE = -8, // bucket -> FAILED_PRECON | 27 BAD_STATE = -8, // bucket -> FAILED_PRECON |
28 BUF_OVERFLOW = -9, // bucket -> RESOURCE_EXHAUSTED | 28 BUF_OVERFLOW = -9, // bucket -> RESOURCE_EXHAUSTED |
29 FLUSHED = -10, // bucket -> ABORTED or CANCELLED | 29 FLUSHED = -10, // bucket -> ABORTED or CANCELLED |
30 BUSY = -11, // bucket -> BUSY | 30 BUSY = -11, // bucket -> BUSY |
31 PROTOCOL_ERROR = -12, // bucket -> FAILED_PRECON | 31 PROTOCOL_ERROR = -12, // bucket -> FAILED_PRECON |
32 ALREADY_EXISTS = -13, // bucket -> ALREADY_EXISTS | 32 ALREADY_EXISTS = -13, // bucket -> ALREADY_EXISTS |
33 NOT_FOUND = -14, // bucket -> NOT_FOUND | 33 NOT_FOUND = -14, // bucket -> NOT_FOUND |
34 SHUTTING_DOWN = -15, // bucket -> FAILED_PRECON | 34 SHUTTING_DOWN = -15, // bucket -> FAILED_PRECON |
35 CONNECTION_LOST = -16, // bucket -> INTERNAL? | 35 CONNECTION_LOST = -16, // bucket -> INTERNAL? |
36 }; | 36 }; |
OLD | NEW |