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

Side by Side Diff: media/mojo/clients/mojo_audio_decoder.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 | « media/base/ipc/media_param_traits_macros.h ('k') | media/mojo/clients/mojo_audio_decoder.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 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_MOJO_CLIENTS_MOJO_AUDIO_DECODER_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_AUDIO_DECODER_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_AUDIO_DECODER_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_AUDIO_DECODER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void OnBufferDecoded(mojom::AudioBufferPtr buffer) final; 45 void OnBufferDecoded(mojom::AudioBufferPtr buffer) final;
46 46
47 private: 47 private:
48 // Callback for connection error on |remote_decoder_|. 48 // Callback for connection error on |remote_decoder_|.
49 void OnConnectionError(); 49 void OnConnectionError();
50 50
51 // Called when |remote_decoder_| finished initialization. 51 // Called when |remote_decoder_| finished initialization.
52 void OnInitialized(bool success, bool needs_bitstream_conversion); 52 void OnInitialized(bool success, bool needs_bitstream_conversion);
53 53
54 // Called when |remote_decoder_| accepted or rejected DecoderBuffer. 54 // Called when |remote_decoder_| accepted or rejected DecoderBuffer.
55 void OnDecodeStatus(mojom::DecodeStatus decode_status); 55 void OnDecodeStatus(DecodeStatus decode_status);
56 56
57 // called when |remote_decoder_| finished Reset() sequence. 57 // called when |remote_decoder_| finished Reset() sequence.
58 void OnResetDone(); 58 void OnResetDone();
59 59
60 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 60 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
61 61
62 // This class is constructed on one thread and used exclusively on another 62 // This class is constructed on one thread and used exclusively on another
63 // thread. This member is used to safely pass the AudioDecoderPtr from one 63 // thread. This member is used to safely pass the AudioDecoderPtr from one
64 // thread to another. It is set in the constructor and is consumed in 64 // thread to another. It is set in the constructor and is consumed in
65 // Initialize(). 65 // Initialize().
(...skipping 20 matching lines...) Expand all
86 // Flag telling whether this decoder requires bitstream conversion. 86 // Flag telling whether this decoder requires bitstream conversion.
87 // Passed from |remote_decoder_| as a result of its initialization. 87 // Passed from |remote_decoder_| as a result of its initialization.
88 bool needs_bitstream_conversion_; 88 bool needs_bitstream_conversion_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(MojoAudioDecoder); 90 DISALLOW_COPY_AND_ASSIGN(MojoAudioDecoder);
91 }; 91 };
92 92
93 } // namespace media 93 } // namespace media
94 94
95 #endif // MEDIA_MOJO_CLIENTS_MOJO_AUDIO_DECODER_H_ 95 #endif // MEDIA_MOJO_CLIENTS_MOJO_AUDIO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/ipc/media_param_traits_macros.h ('k') | media/mojo/clients/mojo_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698