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

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

Issue 1808593002: Add a stub implementation for Mojo AudioDecoder interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spitzer-audio-mojom
Patch Set: Rebased 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
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "media/mojo/services/mojo_audio_decoder_service.h"
7
8 namespace media {
9
10 MojoAudioDecoderService::MojoAudioDecoderService(
11 scoped_ptr<AudioDecoder> decoder,
12 mojo::InterfaceRequest<interfaces::AudioDecoder> request)
13 : binding_(this, std::move(request)), decoder_(std::move(decoder)) {}
14
15 MojoAudioDecoderService::~MojoAudioDecoderService() {}
16
17 void MojoAudioDecoderService::Initialize(
18 interfaces::AudioDecoderClientPtr client,
19 interfaces::AudioDecoderConfigPtr config,
20 int32_t cdm_id,
21 const InitializeCallback& callback) {
22 NOTIMPLEMENTED();
23 callback.Run(false, false);
24 }
25
26 void MojoAudioDecoderService::Decode(interfaces::DecoderBufferPtr buffer,
27 const DecodeCallback& callback) {
28 NOTIMPLEMENTED();
29 callback.Run(DecodeStatus::DECODE_ERROR);
30 }
31
32 void MojoAudioDecoderService::Reset(const ResetCallback& callback) {
33 NOTIMPLEMENTED();
34 callback.Run();
35 }
36
37 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698