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

Side by Side Diff: ipc/ipc_channel_proxy.h

Issue 283313002: Ensure that any IPC sent from a child process that couldn't be deserialized causes that p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: switch to histograms Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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_
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698