OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef SERVICES_MEDIA_FRAMEWORK_RESULT_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_RESULT_H_ |
6 #define SERVICES_MEDIA_FRAMEWORK_RESULT_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_RESULT_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 namespace media { | 11 namespace media { |
12 | 12 |
13 // Possible result values indicating success or type of failure. | 13 // Possible result values indicating success or type of failure. |
14 enum class Result { | 14 enum class Result { |
15 kOk, | 15 kOk, |
16 kUnknownError, | 16 kUnknownError, |
17 kInternalError, | 17 kInternalError, |
18 kUnsupportedOperation, | 18 kUnsupportedOperation, |
19 kInvalidArgument, | 19 kInvalidArgument, |
20 kNotFound | 20 kNotFound |
21 }; | 21 }; |
22 | 22 |
23 } // namespace media | 23 } // namespace media |
24 } // namespace mojo | 24 } // namespace mojo |
25 | 25 |
26 #endif // SERVICES_MEDIA_FRAMEWORK_RESULT_H_ | 26 #endif // SERVICES_MEDIA_FRAMEWORK_RESULT_H_ |
OLD | NEW |