OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FACTORY_H_ | 5 #ifndef IPC_IPC_CHANNEL_FACTORY_H_ |
6 #define IPC_IPC_CHANNEL_FACTORY_H_ | 6 #define IPC_IPC_CHANNEL_FACTORY_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "ipc/ipc_channel_handle.h" | 10 #include "ipc/ipc_channel_handle.h" |
11 #include "ipc/ipc_export.h" | 11 #include "ipc/ipc_export.h" |
12 | 12 |
13 namespace IPC { | 13 namespace IPC { |
14 | 14 |
15 // A ChannelFactory listens on a UNIX domain socket. When a client connects to | 15 // A ChannelFactory listens on a UNIX domain socket. When a client connects to |
16 // the socket, it accept()s the connection and passes the new FD to the | 16 // the socket, it accept()s the connection and passes the new FD to the |
17 // delegate. The delegate is then responsible for creating a new IPC::Channel | 17 // delegate. The delegate is then responsible for creating a new IPC::Channel |
18 // for the FD. | 18 // for the FD. |
19 class IPC_EXPORT ChannelFactory : public base::MessageLoopForIO::Watcher { | 19 class IPC_EXPORT ChannelFactory : public base::MessageLoopForIO::Watcher { |
(...skipping 29 matching lines...) Expand all Loading... |
49 base::FilePath path_; | 49 base::FilePath path_; |
50 Delegate* delegate_; | 50 Delegate* delegate_; |
51 int listen_fd_; | 51 int listen_fd_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(ChannelFactory); | 53 DISALLOW_COPY_AND_ASSIGN(ChannelFactory); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace IPC | 56 } // namespace IPC |
57 | 57 |
58 #endif // IPC_IPC_CHANNEL_FACTORY_H_ | 58 #endif // IPC_IPC_CHANNEL_FACTORY_H_ |
OLD | NEW |