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

Unified Diff: media/mojo/services/mojo_media_client.h

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: 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
Index: media/mojo/services/mojo_media_client.h
diff --git a/media/mojo/services/mojo_media_client.h b/media/mojo/services/mojo_media_client.h
index 9b69c10e69a03b5ebd0a59d7a4f170f21c975ae7..672b689f9c28f51e60a1ca1dcd9e7349ddc39cc1 100644
--- a/media/mojo/services/mojo_media_client.h
+++ b/media/mojo/services/mojo_media_client.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
#define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
+#include "media/base/audio_decoder.h"
#include "media/base/audio_renderer_sink.h"
#include "media/base/cdm_factory.h"
#include "media/base/media_log.h"
@@ -32,6 +33,9 @@ class MojoMediaClient {
// Called exactly once before any other method.
virtual void Initialize();
+ virtual scoped_ptr<AudioDecoder> CreateAudioDecoder(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+
// TODO(xhwang): Consider creating Renderer and CDM directly in the client
// instead of creating factories. See http://crbug.com/586211

Powered by Google App Engine
This is Rietveld 408576698