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 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "media/mojo/services/mojo_audio_decoder_service.h" | 6 #include "media/mojo/services/mojo_audio_decoder_service.h" |
7 | 7 |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 MojoAudioDecoderService::MojoAudioDecoderService( | 10 MojoAudioDecoderService::MojoAudioDecoderService( |
11 scoped_ptr<AudioDecoder> decoder, | 11 scoped_ptr<media::AudioDecoder> decoder, |
12 mojo::InterfaceRequest<interfaces::AudioDecoder> request) | 12 mojo::InterfaceRequest<interfaces::AudioDecoder> request) |
13 : binding_(this, std::move(request)), decoder_(std::move(decoder)) {} | 13 : binding_(this, std::move(request)), decoder_(std::move(decoder)) {} |
14 | 14 |
15 MojoAudioDecoderService::~MojoAudioDecoderService() {} | 15 MojoAudioDecoderService::~MojoAudioDecoderService() {} |
16 | 16 |
17 void MojoAudioDecoderService::Initialize( | 17 void MojoAudioDecoderService::Initialize( |
18 interfaces::AudioDecoderClientPtr client, | 18 interfaces::AudioDecoderClientPtr client, |
19 interfaces::AudioDecoderConfigPtr config, | 19 interfaces::AudioDecoderConfigPtr config, |
20 int32_t cdm_id, | 20 int32_t cdm_id, |
21 const InitializeCallback& callback) { | 21 const InitializeCallback& callback) { |
22 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
23 callback.Run(false, false); | 23 callback.Run(false, false); |
24 } | 24 } |
25 | 25 |
26 void MojoAudioDecoderService::Decode(interfaces::DecoderBufferPtr buffer, | 26 void MojoAudioDecoderService::Decode(interfaces::DecoderBufferPtr buffer, |
27 const DecodeCallback& callback) { | 27 const DecodeCallback& callback) { |
28 NOTIMPLEMENTED(); | 28 NOTIMPLEMENTED(); |
29 callback.Run(DecodeStatus::DECODE_ERROR); | 29 callback.Run(DecodeStatus::DECODE_ERROR); |
30 } | 30 } |
31 | 31 |
32 void MojoAudioDecoderService::Reset(const ResetCallback& callback) { | 32 void MojoAudioDecoderService::Reset(const ResetCallback& callback) { |
33 NOTIMPLEMENTED(); | 33 NOTIMPLEMENTED(); |
34 callback.Run(); | 34 callback.Run(); |
35 } | 35 } |
36 | 36 |
37 } // namespace media | 37 } // namespace media |
OLD | NEW |