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

Unified Diff: content/renderer/media/audio_message_filter.h

Issue 1856673002: Mojofication of the Chrome Audio Rendering Prototype Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « content/content_renderer.gypi ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_message_filter.h
diff --git a/content/renderer/media/audio_message_filter.h b/content/renderer/media/audio_message_filter.h
index dcdc7cd361a1171a540add9ad0d5a0ebce740fbf..f3443ff24c847cdd1f7239c5c831ed82ec5ebd9d 100644
--- a/content/renderer/media/audio_message_filter.h
+++ b/content/renderer/media/audio_message_filter.h
@@ -15,6 +15,8 @@
#include "base/sync_socket.h"
#include "base/synchronization/lock.h"
#include "content/common/content_export.h"
+#include "content/common/media/audio_output.mojom.h"
+#include "content/renderer/media/audio_output_client.h"
#include "ipc/message_filter.h"
#include "media/audio/audio_output_ipc.h"
#include "media/base/audio_hardware_config.h"
@@ -53,6 +55,7 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
~AudioMessageFilter() override;
private:
+ friend AudioOutputClient;
FRIEND_TEST_ALL_PREFIXES(AudioMessageFilterTest, Basic);
FRIEND_TEST_ALL_PREFIXES(AudioMessageFilterTest, Delegates);
@@ -76,7 +79,8 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
const media::AudioParameters& output_params);
// Received when browser process has created an audio output stream.
- void OnStreamCreated(int stream_id,
+ void OnStreamCreated(mojom::AudioOutputStreamPtr* stream,
+ int stream_id,
base::SharedMemoryHandle handle,
base::SyncSocket::TransitDescriptor socket_descriptor,
uint32_t length);
@@ -89,6 +93,7 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
// IPC sender for Send(); must only be accessed on |io_task_runner_|.
IPC::Sender* sender_;
+ AudioOutputClient* audio_output_client_;
// A map of stream ids to delegates; must only be accessed on
// |io_task_runner_|.
IDMap<media::AudioOutputIPCDelegate> delegates_;
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698