| 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 MEDIA_MOJO_SERVICES_MOJO_AUDIO_DECODER_SERVICE_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_AUDIO_DECODER_SERVICE_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_AUDIO_DECODER_SERVICE_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_AUDIO_DECODER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class MEDIA_MOJO_EXPORT MojoAudioDecoderService | 24 class MEDIA_MOJO_EXPORT MojoAudioDecoderService |
| 25 : NON_EXPORTED_BASE(public mojom::AudioDecoder) { | 25 : NON_EXPORTED_BASE(public mojom::AudioDecoder) { |
| 26 public: | 26 public: |
| 27 MojoAudioDecoderService( | 27 MojoAudioDecoderService( |
| 28 base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context, | 28 base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context, |
| 29 std::unique_ptr<media::AudioDecoder> decoder); | 29 std::unique_ptr<media::AudioDecoder> decoder); |
| 30 | 30 |
| 31 ~MojoAudioDecoderService() final; | 31 ~MojoAudioDecoderService() final; |
| 32 | 32 |
| 33 // mojom::AudioDecoder implementation | 33 // mojom::AudioDecoder implementation |
| 34 void Initialize(mojom::AudioDecoderClientAssociatedPtrInfo client, | 34 void Construct(mojom::AudioDecoderClientAssociatedPtrInfo client) final; |
| 35 mojom::AudioDecoderConfigPtr config, | 35 void Initialize(mojom::AudioDecoderConfigPtr config, |
| 36 int32_t cdm_id, | 36 int32_t cdm_id, |
| 37 const InitializeCallback& callback) final; | 37 const InitializeCallback& callback) final; |
| 38 | 38 |
| 39 void SetDataSource(mojo::ScopedDataPipeConsumerHandle receive_pipe) final; | 39 void SetDataSource(mojo::ScopedDataPipeConsumerHandle receive_pipe) final; |
| 40 | 40 |
| 41 void Decode(mojom::DecoderBufferPtr buffer, | 41 void Decode(mojom::DecoderBufferPtr buffer, |
| 42 const DecodeCallback& callback) final; | 42 const DecodeCallback& callback) final; |
| 43 | 43 |
| 44 void Reset(const ResetCallback& callback) final; | 44 void Reset(const ResetCallback& callback) final; |
| 45 | 45 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 base::WeakPtr<MojoAudioDecoderService> weak_this_; | 83 base::WeakPtr<MojoAudioDecoderService> weak_this_; |
| 84 base::WeakPtrFactory<MojoAudioDecoderService> weak_factory_; | 84 base::WeakPtrFactory<MojoAudioDecoderService> weak_factory_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(MojoAudioDecoderService); | 86 DISALLOW_COPY_AND_ASSIGN(MojoAudioDecoderService); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace media | 89 } // namespace media |
| 90 | 90 |
| 91 #endif // MEDIA_MOJO_SERVICES_MOJO_AUDIO_DECODER_SERVICE_H_ | 91 #endif // MEDIA_MOJO_SERVICES_MOJO_AUDIO_DECODER_SERVICE_H_ |
| OLD | NEW |