OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Notification of volume property of an audio input stream. | 78 // Notification of volume property of an audio input stream. |
79 void OnStreamVolume(int stream_id, double volume); | 79 void OnStreamVolume(int stream_id, double volume); |
80 | 80 |
81 // Received when internal state of browser process' audio input stream has | 81 // Received when internal state of browser process' audio input stream has |
82 // changed. | 82 // changed. |
83 void OnStreamStateChanged(int stream_id, | 83 void OnStreamStateChanged(int stream_id, |
84 media::AudioInputIPCDelegateState state); | 84 media::AudioInputIPCDelegateState state); |
85 | 85 |
86 // A map of stream ids to delegates. | 86 // A map of stream ids to delegates. |
87 IDMap<media::AudioInputIPCDelegate> delegates_; | 87 IDMap<media::AudioInputIPCDelegate*> delegates_; |
88 | 88 |
89 // IPC sender for Send(), must only be accesed on |io_task_runner_|. | 89 // IPC sender for Send(), must only be accesed on |io_task_runner_|. |
90 IPC::Sender* sender_; | 90 IPC::Sender* sender_; |
91 | 91 |
92 // Task runner on which IPC calls are executed. | 92 // Task runner on which IPC calls are executed. |
93 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 93 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
94 | 94 |
95 // The singleton instance for this filter. | 95 // The singleton instance for this filter. |
96 static AudioInputMessageFilter* g_filter; | 96 static AudioInputMessageFilter* g_filter; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(AudioInputMessageFilter); | 98 DISALLOW_COPY_AND_ASSIGN(AudioInputMessageFilter); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
102 | 102 |
103 #endif // CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ | 103 #endif // CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ |
OLD | NEW |