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_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ |
6 #define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Received when internal state of browser process' audio output device has | 86 // Received when internal state of browser process' audio output device has |
87 // changed. | 87 // changed. |
88 void OnStreamError(int stream_id); | 88 void OnStreamError(int stream_id); |
89 | 89 |
90 // IPC sender for Send(); must only be accessed on |io_task_runner_|. | 90 // IPC sender for Send(); must only be accessed on |io_task_runner_|. |
91 IPC::Sender* sender_; | 91 IPC::Sender* sender_; |
92 | 92 |
93 // A map of stream ids to delegates; must only be accessed on | 93 // A map of stream ids to delegates; must only be accessed on |
94 // |io_task_runner_|. | 94 // |io_task_runner_|. |
95 IDMap<media::AudioOutputIPCDelegate> delegates_; | 95 IDMap<media::AudioOutputIPCDelegate*> delegates_; |
96 | 96 |
97 // Task runner on which IPC calls are executed. | 97 // Task runner on which IPC calls are executed. |
98 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 98 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
99 | 99 |
100 // The singleton instance for this filter. | 100 // The singleton instance for this filter. |
101 static AudioMessageFilter* g_filter; | 101 static AudioMessageFilter* g_filter; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); | 103 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace content | 106 } // namespace content |
107 | 107 |
108 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ | 108 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ |
OLD | NEW |