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

Side by Side Diff: media/base/decode_status.h

Issue 2408063009: media: Use native DecodeStatus in media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 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
« no previous file with comments | « no previous file | media/base/ipc/media_param_traits_macros.h » ('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 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 MEDIA_BASE_DECODE_STATUS_H_ 5 #ifndef MEDIA_BASE_DECODE_STATUS_H_
6 #define MEDIA_BASE_DECODE_STATUS_H_ 6 #define MEDIA_BASE_DECODE_STATUS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 enum class DecodeStatus { 14 enum class DecodeStatus {
15 OK = 0, // Everything went as planned. 15 OK = 0, // Everything went as planned.
16 ABORTED, // Read aborted due to Reset() during pending read. 16 ABORTED, // Read aborted due to Reset() during pending read.
17 DECODE_ERROR, // Decoder returned decode error. Note: Prefixed by DECODE_ 17 DECODE_ERROR, // Decoder returned decode error. Note: Prefixed by DECODE_
18 // since ERROR is a reserved name (special macro) on Windows. 18 // since ERROR is a reserved name (special macro) on Windows.
19 DECODE_STATUS_MAX = DECODE_ERROR
19 }; 20 };
20 21
21 // Helper function so that DecodeStatus can be printed easily. 22 // Helper function so that DecodeStatus can be printed easily.
22 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, 23 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os,
23 const DecodeStatus& status); 24 const DecodeStatus& status);
24 25
25 } // namespace media 26 } // namespace media
26 27
27 #endif // MEDIA_BASE_DECODE_STATUS_H_ 28 #endif // MEDIA_BASE_DECODE_STATUS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/ipc/media_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698