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

Side by Side Diff: content/renderer/media/audio_input_message_filter.h

Issue 2919793002: Detect AudioInputStream muting and propagate to MediaStreamAudioSource. (Closed)
Patch Set: Reworked test again, to make tsan2 happy. Created 3 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ 6 #define CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #else 72 #else
73 base::FileDescriptor socket_descriptor, 73 base::FileDescriptor socket_descriptor,
74 #endif 74 #endif
75 uint32_t length, 75 uint32_t length,
76 uint32_t total_segments); 76 uint32_t total_segments);
77 77
78 // Received when internal state of browser process' audio input stream has 78 // Received when internal state of browser process' audio input stream has
79 // encountered an error. 79 // encountered an error.
80 void OnStreamError(int stream_id); 80 void OnStreamError(int stream_id);
81 81
82 // Received when a stream is muted or unmuted.
83 void OnStreamMuted(int stream_id, bool is_muted);
84
82 // A map of stream ids to delegates. 85 // A map of stream ids to delegates.
83 IDMap<media::AudioInputIPCDelegate*> delegates_; 86 IDMap<media::AudioInputIPCDelegate*> delegates_;
84 87
85 // IPC sender for Send(), must only be accesed on |io_task_runner_|. 88 // IPC sender for Send(), must only be accesed on |io_task_runner_|.
86 IPC::Sender* sender_; 89 IPC::Sender* sender_;
87 90
88 // Task runner on which IPC calls are executed. 91 // Task runner on which IPC calls are executed.
89 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 92 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
90 93
91 // The singleton instance for this filter. 94 // The singleton instance for this filter.
92 static AudioInputMessageFilter* g_filter; 95 static AudioInputMessageFilter* g_filter;
93 96
94 DISALLOW_COPY_AND_ASSIGN(AudioInputMessageFilter); 97 DISALLOW_COPY_AND_ASSIGN(AudioInputMessageFilter);
95 }; 98 };
96 99
97 } // namespace content 100 } // namespace content
98 101
99 #endif // CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ 102 #endif // CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/renderer/media/audio_input_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698