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

Side by Side Diff: media/mojo/services/mojo_audio_decoder_service.cc

Issue 1810763002: Connect Mojo AudioDecoder service to the Mojo service factory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spitzer-audio-service-stub
Patch Set: Passed scoped_refptr by value instead of const ref Created 4 years, 9 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
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 #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
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | media/mojo/services/mojo_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698