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

Unified Diff: ipc/ipc_sync_channel.h

Issue 1262253004: Let IPC::SyncMessageFilter take advantage of thread-safe Send. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minus some code Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_channel.h
diff --git a/ipc/ipc_sync_channel.h b/ipc/ipc_sync_channel.h
index 8b4b9a96e363e17187ef6f5e4efe07644628e68d..2fd1b117efca76a75db3a773e35d32e0ba9de533 100644
--- a/ipc/ipc_sync_channel.h
+++ b/ipc/ipc_sync_channel.h
@@ -15,6 +15,7 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_sync_message.h"
+#include "ipc/ipc_sync_message_filter.h"
namespace base {
class WaitableEvent;
@@ -116,6 +117,11 @@ class IPC_EXPORT SyncChannel : public ChannelProxy {
// default) will be dispatched in any case.
void SetRestrictDispatchChannelGroup(int group);
+ // Creates a new IPC::SyncMessageFilter and adds it to this SyncChannel.
+ // This should be used instead of directly constructing a new
+ // SyncMessageFilter.
+ scoped_refptr<IPC::SyncMessageFilter> CreateSyncMessageFilter();
+
protected:
class ReceivedSyncMsgQueue;
friend class ReceivedSyncMsgQueue;
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698