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_SYNC_CHANNEL_H_ | 5 #ifndef IPC_IPC_SYNC_CHANNEL_H_ |
6 #define IPC_IPC_SYNC_CHANNEL_H_ | 6 #define IPC_IPC_SYNC_CHANNEL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <deque> | 9 #include <deque> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // Creates and initializes a sync channel. If create_pipe_now is specified, | 68 // Creates and initializes a sync channel. If create_pipe_now is specified, |
69 // the channel will be initialized synchronously. | 69 // the channel will be initialized synchronously. |
70 // The naming pattern follows IPC::Channel. | 70 // The naming pattern follows IPC::Channel. |
71 static scoped_ptr<SyncChannel> Create( | 71 static scoped_ptr<SyncChannel> Create( |
72 const IPC::ChannelHandle& channel_handle, | 72 const IPC::ChannelHandle& channel_handle, |
73 IPC::Channel::Mode mode, | 73 IPC::Channel::Mode mode, |
74 Listener* listener, | 74 Listener* listener, |
75 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, | 75 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
76 bool create_pipe_now, | 76 bool create_pipe_now, |
77 base::WaitableEvent* shutdown_event); | 77 base::WaitableEvent* shutdown_event, |
| 78 AttachmentBroker* broker); |
78 | 79 |
79 static scoped_ptr<SyncChannel> Create( | 80 static scoped_ptr<SyncChannel> Create( |
80 scoped_ptr<ChannelFactory> factory, | 81 scoped_ptr<ChannelFactory> factory, |
81 Listener* listener, | 82 Listener* listener, |
82 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, | 83 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
83 bool create_pipe_now, | 84 bool create_pipe_now, |
84 base::WaitableEvent* shutdown_event); | 85 base::WaitableEvent* shutdown_event); |
85 | 86 |
86 // Creates an uninitialized sync channel. Call ChannelProxy::Init to | 87 // Creates an uninitialized sync channel. Call ChannelProxy::Init to |
87 // initialize the channel. This two-step setup allows message filters to be | 88 // initialize the channel. This two-step setup allows message filters to be |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // Used to signal events between the IPC and listener threads. | 227 // Used to signal events between the IPC and listener threads. |
227 base::WaitableEventWatcher dispatch_watcher_; | 228 base::WaitableEventWatcher dispatch_watcher_; |
228 base::WaitableEventWatcher::EventCallback dispatch_watcher_callback_; | 229 base::WaitableEventWatcher::EventCallback dispatch_watcher_callback_; |
229 | 230 |
230 DISALLOW_COPY_AND_ASSIGN(SyncChannel); | 231 DISALLOW_COPY_AND_ASSIGN(SyncChannel); |
231 }; | 232 }; |
232 | 233 |
233 } // namespace IPC | 234 } // namespace IPC |
234 | 235 |
235 #endif // IPC_IPC_SYNC_CHANNEL_H_ | 236 #endif // IPC_IPC_SYNC_CHANNEL_H_ |
OLD | NEW |