summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sync_channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_sync_channel.h')
-rw-r--r--ipc/ipc_sync_channel.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ipc/ipc_sync_channel.h b/ipc/ipc_sync_channel.h
index e43933e..ae9a765 100644
--- a/ipc/ipc_sync_channel.h
+++ b/ipc/ipc_sync_channel.h
@@ -62,12 +62,22 @@ class SyncMessage;
class IPC_EXPORT SyncChannel : public ChannelProxy,
public base::WaitableEventWatcher::Delegate {
public:
+ // Creates and initializes a sync channel. If create_pipe_now is specified,
+ // the channel will be initialized synchronously.
SyncChannel(const IPC::ChannelHandle& channel_handle,
Channel::Mode mode,
Channel::Listener* listener,
base::MessageLoopProxy* ipc_message_loop,
bool create_pipe_now,
base::WaitableEvent* shutdown_event);
+
+ // Creates an uninitialized sync channel. Call ChannelProxy::Init to
+ // initialize the channel. This two-step setup allows message filters to be
+ // added before any messages are sent or received.
+ SyncChannel(Channel::Listener* listener,
+ base::MessageLoopProxy* ipc_message_loop,
+ base::WaitableEvent* shutdown_event);
+
virtual ~SyncChannel();
virtual bool Send(Message* message);
@@ -186,6 +196,9 @@ class IPC_EXPORT SyncChannel : public ChannelProxy,
// shuts down.
static void WaitForReplyWithNestedMessageLoop(SyncContext* context);
+ // Starts the dispatch watcher.
+ void StartWatching();
+
bool sync_messages_with_no_timeout_allowed_;
// Used to signal events between the IPC and listener threads.