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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_audio_decoder_service.cc
diff --git a/media/mojo/services/mojo_audio_decoder_service.cc b/media/mojo/services/mojo_audio_decoder_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bf2c6615add8c3abe23b3ffd58c50e10c5febd2c
--- /dev/null
+++ b/media/mojo/services/mojo_audio_decoder_service.cc
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/logging.h"
+#include "media/mojo/services/mojo_audio_decoder_service.h"
+
+namespace media {
+
+MojoAudioDecoderService::MojoAudioDecoderService(
+ scoped_ptr<AudioDecoder> decoder,
+ mojo::InterfaceRequest<interfaces::AudioDecoder> request)
+ : binding_(this, std::move(request)), decoder_(std::move(decoder)) {}
+
+MojoAudioDecoderService::~MojoAudioDecoderService() {}
+
+void MojoAudioDecoderService::Initialize(
+ interfaces::AudioDecoderClientPtr client,
+ interfaces::AudioDecoderConfigPtr config,
+ int32_t cdm_id,
+ const InitializeCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(false, false);
+}
+
+void MojoAudioDecoderService::Decode(interfaces::DecoderBufferPtr buffer,
+ const DecodeCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(DecodeStatus::DECODE_ERROR);
+}
+
+void MojoAudioDecoderService::Reset(const ResetCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run();
+}
+
+} // namespace media
« 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