OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // MessageFilter that handles audio messages and delegates them to audio | 5 // MessageFilter that handles audio messages and delegates them to audio |
6 // renderers. Created on render thread, AudioMessageFilter is operated on | 6 // renderers. Created on render thread, AudioMessageFilter is operated on |
7 // IO thread (main thread of render process), it intercepts audio messages | 7 // IO thread (main thread of render process), it intercepts audio messages |
8 // and process them on IO thread since these messages are time critical. | 8 // and process them on IO thread since these messages are time critical. |
9 | 9 |
10 #ifndef CHROME_RENDERER_AUDIO_MESSAGE_FILTER_H_ | 10 #ifndef CONTENT_RENDERER_AUDIO_MESSAGE_FILTER_H_ |
11 #define CHROME_RENDERER_AUDIO_MESSAGE_FILTER_H_ | 11 #define CONTENT_RENDERER_AUDIO_MESSAGE_FILTER_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/id_map.h" | 15 #include "base/id_map.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "base/sync_socket.h" | 17 #include "base/sync_socket.h" |
18 #include "ipc/ipc_channel_proxy.h" | 18 #include "ipc/ipc_channel_proxy.h" |
19 #include "media/audio/audio_buffers_state.h" | 19 #include "media/audio/audio_buffers_state.h" |
20 | 20 |
21 struct ViewMsg_AudioStreamState_Params; | 21 struct ViewMsg_AudioStreamState_Params; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 IPC::Channel* channel_; | 112 IPC::Channel* channel_; |
113 | 113 |
114 int32 route_id_; | 114 int32 route_id_; |
115 | 115 |
116 MessageLoop* message_loop_; | 116 MessageLoop* message_loop_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); | 118 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); |
119 }; | 119 }; |
120 | 120 |
121 #endif // CHROME_RENDERER_AUDIO_MESSAGE_FILTER_H_ | 121 #endif // CONTENT_RENDERER_AUDIO_MESSAGE_FILTER_H_ |
OLD | NEW |