piman@chromium.org | 5a00b88 | 2012-03-31 06:29:30 +0900 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
thestig@chromium.org | 519c9ac | 2011-11-15 09:29:48 +0900 | [diff] [blame] | 5 | #ifndef IPC_IPC_SYNC_CHANNEL_H_ |
| 6 | #define IPC_IPC_SYNC_CHANNEL_H_ |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 7 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 8 | #include <deque> |
danakj | c3fb6c5 | 2016-04-23 13:21:09 +0900 | [diff] [blame] | 9 | #include <memory> |
rockot | 8115a59 | 2015-08-07 15:23:59 +0900 | [diff] [blame] | 10 | #include <string> |
| 11 | #include <vector> |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 12 | |
tfarina | 2d565d3 | 2015-09-16 18:56:21 +0900 | [diff] [blame] | 13 | #include "base/macros.h" |
levin@chromium.org | 5c52868 | 2011-03-28 10:54:15 +0900 | [diff] [blame] | 14 | #include "base/memory/ref_counted.h" |
brettw@chromium.org | abe477a | 2011-01-21 13:55:52 +0900 | [diff] [blame] | 15 | #include "base/synchronization/lock.h" |
brettw@chromium.org | 5238c7d | 2011-01-02 15:05:39 +0900 | [diff] [blame] | 16 | #include "base/synchronization/waitable_event_watcher.h" |
dmaclach@chromium.org | 058c4a7 | 2010-12-09 04:28:09 +0900 | [diff] [blame] | 17 | #include "ipc/ipc_channel_handle.h" |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 18 | #include "ipc/ipc_channel_proxy.h" |
jabdelmalek@google.com | eb92165 | 2010-04-07 05:33:36 +0900 | [diff] [blame] | 19 | #include "ipc/ipc_sync_message.h" |
rockot | edb9203 | 2015-08-06 09:32:29 +0900 | [diff] [blame] | 20 | #include "ipc/ipc_sync_message_filter.h" |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 21 | #include "mojo/public/c/system/types.h" |
rockot | a07beef | 2017-03-16 08:57:47 +0900 | [diff] [blame] | 22 | #include "mojo/public/cpp/system/simple_watcher.h" |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 23 | |
| 24 | namespace base { |
rockot | 39af274 | 2017-03-25 03:36:44 +0900 | [diff] [blame] | 25 | class RunLoop; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 26 | class WaitableEvent; |
| 27 | }; |
| 28 | |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 29 | namespace mojo { |
| 30 | class SyncHandleRegistry; |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 31 | } |
| 32 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 33 | namespace IPC { |
| 34 | |
rockot | 71bef07 | 2016-06-25 02:27:33 +0900 | [diff] [blame] | 35 | class ChannelFactory; |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 36 | class SyncMessage; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 37 | |
jabdelmalek@google.com | eb92165 | 2010-04-07 05:33:36 +0900 | [diff] [blame] | 38 | // This is similar to ChannelProxy, with the added feature of supporting sending |
| 39 | // synchronous messages. |
brettw@chromium.org | b57fa13 | 2011-04-16 04:07:43 +0900 | [diff] [blame] | 40 | // |
| 41 | // Overview of how the sync channel works |
| 42 | // -------------------------------------- |
| 43 | // When the sending thread sends a synchronous message, we create a bunch |
piman@chromium.org | 609a689 | 2014-04-17 01:50:43 +0900 | [diff] [blame] | 44 | // of tracking info (created in Send, stored in the PendingSyncMsg |
brettw@chromium.org | b57fa13 | 2011-04-16 04:07:43 +0900 | [diff] [blame] | 45 | // structure) associated with the message that we identify by the unique |
| 46 | // "MessageId" on the SyncMessage. Among the things we save is the |
| 47 | // "Deserializer" which is provided by the sync message. This object is in |
| 48 | // charge of reading the parameters from the reply message and putting them in |
| 49 | // the output variables provided by its caller. |
| 50 | // |
| 51 | // The info gets stashed in a queue since we could have a nested stack of sync |
| 52 | // messages (each side could send sync messages in response to sync messages, |
| 53 | // so it works like calling a function). The message is sent to the I/O thread |
| 54 | // for dispatch and the original thread blocks waiting for the reply. |
| 55 | // |
| 56 | // SyncContext maintains the queue in a threadsafe way and listens for replies |
| 57 | // on the I/O thread. When a reply comes in that matches one of the messages |
| 58 | // it's looking for (using the unique message ID), it will execute the |
| 59 | // deserializer stashed from before, and unblock the original thread. |
| 60 | // |
| 61 | // |
| 62 | // Significant complexity results from the fact that messages are still coming |
| 63 | // in while the original thread is blocked. Normal async messages are queued |
| 64 | // and dispatched after the blocking call is complete. Sync messages must |
| 65 | // be dispatched in a reentrant manner to avoid deadlock. |
| 66 | // |
| 67 | // |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 68 | // Note that care must be taken that the lifetime of the ipc_thread argument |
| 69 | // is more than this object. If the message loop goes away while this object |
| 70 | // is running and it's used to send a message, then it will use the invalid |
| 71 | // message loop pointer to proxy it to the ipc thread. |
teravest@chromium.org | cd16b3a | 2013-02-05 03:14:28 +0900 | [diff] [blame] | 72 | class IPC_EXPORT SyncChannel : public ChannelProxy { |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 73 | public: |
piman@chromium.org | 5a00b88 | 2012-03-31 06:29:30 +0900 | [diff] [blame] | 74 | enum RestrictDispatchGroup { |
| 75 | kRestrictDispatchGroup_None = 0, |
| 76 | }; |
| 77 | |
kkania@chromium.org | 9ccb469 | 2011-11-16 10:06:46 +0900 | [diff] [blame] | 78 | // Creates and initializes a sync channel. If create_pipe_now is specified, |
| 79 | // the channel will be initialized synchronously. |
morrita@chromium.org | 15b4860 | 2014-06-06 01:15:38 +0900 | [diff] [blame] | 80 | // The naming pattern follows IPC::Channel. |
danakj | c3fb6c5 | 2016-04-23 13:21:09 +0900 | [diff] [blame] | 81 | static std::unique_ptr<SyncChannel> Create( |
morrita@chromium.org | 15b4860 | 2014-06-06 01:15:38 +0900 | [diff] [blame] | 82 | const IPC::ChannelHandle& channel_handle, |
| 83 | IPC::Channel::Mode mode, |
| 84 | Listener* listener, |
dcheng | ea780ac | 2014-08-29 01:59:29 +0900 | [diff] [blame] | 85 | const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
morrita@chromium.org | 15b4860 | 2014-06-06 01:15:38 +0900 | [diff] [blame] | 86 | bool create_pipe_now, |
erikchen | c596f54 | 2015-09-24 12:26:38 +0900 | [diff] [blame] | 87 | base::WaitableEvent* shutdown_event); |
kkania@chromium.org | 9ccb469 | 2011-11-16 10:06:46 +0900 | [diff] [blame] | 88 | |
danakj | c3fb6c5 | 2016-04-23 13:21:09 +0900 | [diff] [blame] | 89 | static std::unique_ptr<SyncChannel> Create( |
| 90 | std::unique_ptr<ChannelFactory> factory, |
morrita@chromium.org | 15996aa | 2014-08-05 08:44:17 +0900 | [diff] [blame] | 91 | Listener* listener, |
dcheng | ea780ac | 2014-08-29 01:59:29 +0900 | [diff] [blame] | 92 | const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
morrita@chromium.org | 15996aa | 2014-08-05 08:44:17 +0900 | [diff] [blame] | 93 | bool create_pipe_now, |
| 94 | base::WaitableEvent* shutdown_event); |
| 95 | |
kkania@chromium.org | 9ccb469 | 2011-11-16 10:06:46 +0900 | [diff] [blame] | 96 | // Creates an uninitialized sync channel. Call ChannelProxy::Init to |
| 97 | // initialize the channel. This two-step setup allows message filters to be |
| 98 | // added before any messages are sent or received. |
danakj | c3fb6c5 | 2016-04-23 13:21:09 +0900 | [diff] [blame] | 99 | static std::unique_ptr<SyncChannel> Create( |
morrita@chromium.org | 15b4860 | 2014-06-06 01:15:38 +0900 | [diff] [blame] | 100 | Listener* listener, |
dcheng | ea780ac | 2014-08-29 01:59:29 +0900 | [diff] [blame] | 101 | const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
morrita@chromium.org | 15b4860 | 2014-06-06 01:15:38 +0900 | [diff] [blame] | 102 | base::WaitableEvent* shutdown_event); |
kkania@chromium.org | 9ccb469 | 2011-11-16 10:06:46 +0900 | [diff] [blame] | 103 | |
dcheng | ef7721a | 2014-10-22 11:29:52 +0900 | [diff] [blame] | 104 | ~SyncChannel() override; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 105 | |
dcheng | ef7721a | 2014-10-22 11:29:52 +0900 | [diff] [blame] | 106 | bool Send(Message* message) override; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 107 | |
piman@chromium.org | 5a00b88 | 2012-03-31 06:29:30 +0900 | [diff] [blame] | 108 | // Sets the dispatch group for this channel, to only allow re-entrant dispatch |
| 109 | // of messages to other channels in the same group. |
piman@google.com | 0cbefaa | 2011-04-08 12:38:21 +0900 | [diff] [blame] | 110 | // |
| 111 | // Normally, any unblocking message coming from any channel can be dispatched |
| 112 | // when any (possibly other) channel is blocked on sending a message. This is |
| 113 | // needed in some cases to unblock certain loops (e.g. necessary when some |
| 114 | // processes share a window hierarchy), but may cause re-entrancy issues in |
| 115 | // some cases where such loops are not possible. This flags allows the tagging |
piman@chromium.org | 5a00b88 | 2012-03-31 06:29:30 +0900 | [diff] [blame] | 116 | // of some particular channels to only re-enter in known correct cases. |
| 117 | // |
| 118 | // Incoming messages on channels belonging to a group that is not |
| 119 | // kRestrictDispatchGroup_None will only be dispatched while a sync message is |
| 120 | // being sent on a channel of the *same* group. |
| 121 | // Incoming messages belonging to the kRestrictDispatchGroup_None group (the |
| 122 | // default) will be dispatched in any case. |
| 123 | void SetRestrictDispatchChannelGroup(int group); |
piman@google.com | 0cbefaa | 2011-04-08 12:38:21 +0900 | [diff] [blame] | 124 | |
rockot | edb9203 | 2015-08-06 09:32:29 +0900 | [diff] [blame] | 125 | // Creates a new IPC::SyncMessageFilter and adds it to this SyncChannel. |
| 126 | // This should be used instead of directly constructing a new |
| 127 | // SyncMessageFilter. |
| 128 | scoped_refptr<IPC::SyncMessageFilter> CreateSyncMessageFilter(); |
| 129 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 130 | protected: |
| 131 | class ReceivedSyncMsgQueue; |
| 132 | friend class ReceivedSyncMsgQueue; |
| 133 | |
| 134 | // SyncContext holds the per object data for SyncChannel, so that SyncChannel |
| 135 | // can be deleted while it's being used in a different thread. See |
| 136 | // ChannelProxy::Context for more information. |
teravest@chromium.org | cd16b3a | 2013-02-05 03:14:28 +0900 | [diff] [blame] | 137 | class SyncContext : public Context { |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 138 | public: |
dcheng | ea780ac | 2014-08-29 01:59:29 +0900 | [diff] [blame] | 139 | SyncContext( |
| 140 | Listener* listener, |
| 141 | const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
| 142 | base::WaitableEvent* shutdown_event); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 143 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 144 | // Adds information about an outgoing sync message to the context so that |
| 145 | // we know how to deserialize the reply. |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 146 | bool Push(SyncMessage* sync_msg); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 147 | |
| 148 | // Cleanly remove the top deserializer (and throw it away). Returns the |
| 149 | // result of the Send call for that message. |
| 150 | bool Pop(); |
| 151 | |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 152 | // Returns a Mojo Event that signals when a sync send is complete or timed |
| 153 | // out or the process shut down. |
rockot | 39af274 | 2017-03-25 03:36:44 +0900 | [diff] [blame] | 154 | base::WaitableEvent* GetSendDoneEvent(); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 155 | |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 156 | // Returns a Mojo Event that signals when an incoming message that's not the |
| 157 | // pending reply needs to get dispatched (by calling DispatchMessages.) |
rockot | 39af274 | 2017-03-25 03:36:44 +0900 | [diff] [blame] | 158 | base::WaitableEvent* GetDispatchEvent(); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 159 | |
| 160 | void DispatchMessages(); |
| 161 | |
| 162 | // Checks if the given message is blocking the listener thread because of a |
| 163 | // synchronous send. If it is, the thread is unblocked and true is |
| 164 | // returned. Otherwise the function returns false. |
| 165 | bool TryToUnblockListener(const Message* msg); |
| 166 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 167 | base::WaitableEvent* shutdown_event() { return shutdown_event_; } |
| 168 | |
ananta@chromium.org | 31b338f | 2009-10-15 01:22:02 +0900 | [diff] [blame] | 169 | ReceivedSyncMsgQueue* received_sync_msgs() { |
rsleevi@chromium.org | 23b6623 | 2013-06-01 13:11:27 +0900 | [diff] [blame] | 170 | return received_sync_msgs_.get(); |
ananta@chromium.org | 31b338f | 2009-10-15 01:22:02 +0900 | [diff] [blame] | 171 | } |
| 172 | |
piman@chromium.org | 5a00b88 | 2012-03-31 06:29:30 +0900 | [diff] [blame] | 173 | void set_restrict_dispatch_group(int group) { |
| 174 | restrict_dispatch_group_ = group; |
| 175 | } |
| 176 | |
| 177 | int restrict_dispatch_group() const { |
| 178 | return restrict_dispatch_group_; |
| 179 | } |
piman@google.com | 0cbefaa | 2011-04-08 12:38:21 +0900 | [diff] [blame] | 180 | |
rockot | 39af274 | 2017-03-25 03:36:44 +0900 | [diff] [blame] | 181 | void OnSendDoneEventSignaled(base::RunLoop* nested_loop, |
| 182 | base::WaitableEvent* event); |
| 183 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 184 | private: |
dcheng | ef7721a | 2014-10-22 11:29:52 +0900 | [diff] [blame] | 185 | ~SyncContext() override; |
jabdelmalek@google.com | eb92165 | 2010-04-07 05:33:36 +0900 | [diff] [blame] | 186 | // ChannelProxy methods that we override. |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 187 | |
| 188 | // Called on the listener thread. |
dcheng | ef7721a | 2014-10-22 11:29:52 +0900 | [diff] [blame] | 189 | void Clear() override; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 190 | |
| 191 | // Called on the IPC thread. |
dcheng | ef7721a | 2014-10-22 11:29:52 +0900 | [diff] [blame] | 192 | bool OnMessageReceived(const Message& msg) override; |
| 193 | void OnChannelError() override; |
rockot | e7c4790 | 2016-09-09 03:24:56 +0900 | [diff] [blame] | 194 | void OnChannelOpened() override; |
dcheng | ef7721a | 2014-10-22 11:29:52 +0900 | [diff] [blame] | 195 | void OnChannelClosed() override; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 196 | |
| 197 | // Cancels all pending Send calls. |
| 198 | void CancelPendingSends(); |
| 199 | |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 200 | void OnShutdownEventSignaled(base::WaitableEvent* event); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 201 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 202 | typedef std::deque<PendingSyncMsg> PendingSyncMessageQueue; |
| 203 | PendingSyncMessageQueue deserializers_; |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 204 | bool reject_new_deserializers_ = false; |
brettw@chromium.org | abe477a | 2011-01-21 13:55:52 +0900 | [diff] [blame] | 205 | base::Lock deserializers_lock_; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 206 | |
| 207 | scoped_refptr<ReceivedSyncMsgQueue> received_sync_msgs_; |
| 208 | |
| 209 | base::WaitableEvent* shutdown_event_; |
| 210 | base::WaitableEventWatcher shutdown_watcher_; |
teravest@chromium.org | cd16b3a | 2013-02-05 03:14:28 +0900 | [diff] [blame] | 211 | base::WaitableEventWatcher::EventCallback shutdown_watcher_callback_; |
piman@chromium.org | 5a00b88 | 2012-03-31 06:29:30 +0900 | [diff] [blame] | 212 | int restrict_dispatch_group_; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 213 | }; |
| 214 | |
| 215 | private: |
dcheng | ea780ac | 2014-08-29 01:59:29 +0900 | [diff] [blame] | 216 | SyncChannel( |
| 217 | Listener* listener, |
| 218 | const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
| 219 | base::WaitableEvent* shutdown_event); |
morrita@chromium.org | 15b4860 | 2014-06-06 01:15:38 +0900 | [diff] [blame] | 220 | |
rockot | 39af274 | 2017-03-25 03:36:44 +0900 | [diff] [blame] | 221 | void OnDispatchEventSignaled(base::WaitableEvent* event); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 222 | |
| 223 | SyncContext* sync_context() { |
| 224 | return reinterpret_cast<SyncContext*>(context()); |
| 225 | } |
| 226 | |
| 227 | // Both these functions wait for a reply, timeout or process shutdown. The |
| 228 | // latter one also runs a nested message loop in the meantime. |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 229 | static void WaitForReply(mojo::SyncHandleRegistry* registry, |
| 230 | SyncContext* context, |
| 231 | bool pump_messages); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 232 | |
| 233 | // Runs a nested message loop until a reply arrives, times out, or the process |
| 234 | // shuts down. |
jam@chromium.org | ebd0718 | 2009-12-01 11:34:18 +0900 | [diff] [blame] | 235 | static void WaitForReplyWithNestedMessageLoop(SyncContext* context); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 236 | |
kkania@chromium.org | 9ccb469 | 2011-11-16 10:06:46 +0900 | [diff] [blame] | 237 | // Starts the dispatch watcher. |
| 238 | void StartWatching(); |
| 239 | |
rockot | 8115a59 | 2015-08-07 15:23:59 +0900 | [diff] [blame] | 240 | // ChannelProxy overrides: |
| 241 | void OnChannelInit() override; |
| 242 | |
rockot | 0a32171 | 2016-07-08 05:26:02 +0900 | [diff] [blame] | 243 | scoped_refptr<mojo::SyncHandleRegistry> sync_handle_registry_; |
| 244 | |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 245 | // Used to signal events between the IPC and listener threads. |
rockot | 39af274 | 2017-03-25 03:36:44 +0900 | [diff] [blame] | 246 | base::WaitableEventWatcher dispatch_watcher_; |
| 247 | base::WaitableEventWatcher::EventCallback dispatch_watcher_callback_; |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 248 | |
rockot | 8115a59 | 2015-08-07 15:23:59 +0900 | [diff] [blame] | 249 | // Tracks SyncMessageFilters created before complete channel initialization. |
| 250 | std::vector<scoped_refptr<SyncMessageFilter>> pre_init_sync_message_filters_; |
| 251 | |
tfarina@chromium.org | b73eaee | 2010-06-07 11:10:18 +0900 | [diff] [blame] | 252 | DISALLOW_COPY_AND_ASSIGN(SyncChannel); |
agl@chromium.org | 1c6dcf2 | 2009-07-23 08:57:21 +0900 | [diff] [blame] | 253 | }; |
| 254 | |
| 255 | } // namespace IPC |
| 256 | |
thestig@chromium.org | 519c9ac | 2011-11-15 09:29:48 +0900 | [diff] [blame] | 257 | #endif // IPC_IPC_SYNC_CHANNEL_H_ |