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 IPC_IPC_CHANNEL_PROXY_H_ | 5 #ifndef IPC_IPC_CHANNEL_PROXY_H_ |
6 #define IPC_IPC_CHANNEL_PROXY_H_ | 6 #define IPC_IPC_CHANNEL_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 // Methods called on the IO thread. | 174 // Methods called on the IO thread. |
175 void OnSendMessage(scoped_ptr<Message> message_ptr); | 175 void OnSendMessage(scoped_ptr<Message> message_ptr); |
176 void OnAddFilter(); | 176 void OnAddFilter(); |
177 void OnRemoveFilter(MessageFilter* filter); | 177 void OnRemoveFilter(MessageFilter* filter); |
178 | 178 |
179 // Methods called on the listener thread. | 179 // Methods called on the listener thread. |
180 void AddFilter(MessageFilter* filter); | 180 void AddFilter(MessageFilter* filter); |
181 void OnDispatchConnected(); | 181 void OnDispatchConnected(); |
182 void OnDispatchError(); | 182 void OnDispatchError(); |
| 183 void OnDispatchBadMessage(const Message& message); |
183 | 184 |
184 scoped_refptr<base::SingleThreadTaskRunner> listener_task_runner_; | 185 scoped_refptr<base::SingleThreadTaskRunner> listener_task_runner_; |
185 Listener* listener_; | 186 Listener* listener_; |
186 | 187 |
187 // List of filters. This is only accessed on the IPC thread. | 188 // List of filters. This is only accessed on the IPC thread. |
188 std::vector<scoped_refptr<MessageFilter> > filters_; | 189 std::vector<scoped_refptr<MessageFilter> > filters_; |
189 scoped_refptr<base::SingleThreadTaskRunner> ipc_task_runner_; | 190 scoped_refptr<base::SingleThreadTaskRunner> ipc_task_runner_; |
190 | 191 |
191 // Note, channel_ may be set on the Listener thread or the IPC thread. | 192 // Note, channel_ may be set on the Listener thread or the IPC thread. |
192 // But once it has been set, it must only be read or cleared on the IPC | 193 // But once it has been set, it must only be read or cleared on the IPC |
(...skipping 27 matching lines...) Expand all Loading... |
220 // that involves this data. | 221 // that involves this data. |
221 scoped_refptr<Context> context_; | 222 scoped_refptr<Context> context_; |
222 | 223 |
223 // Whether the channel has been initialized. | 224 // Whether the channel has been initialized. |
224 bool did_init_; | 225 bool did_init_; |
225 }; | 226 }; |
226 | 227 |
227 } // namespace IPC | 228 } // namespace IPC |
228 | 229 |
229 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 230 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
OLD | NEW |