diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 21:37:01 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 21:37:01 +0000 |
commit | df3c1ca1d62d9bb67e10b2d514082b8ac7ac0277 (patch) | |
tree | fcb6ff56b5782df2e084ec4902ff9085751b8f61 /chrome/common/ipc_channel_posix.h | |
parent | 83d36f001d591d153b3442e9d0f3739ee984469a (diff) | |
download | chromium_src-df3c1ca1d62d9bb67e10b2d514082b8ac7ac0277.zip chromium_src-df3c1ca1d62d9bb67e10b2d514082b8ac7ac0277.tar.gz chromium_src-df3c1ca1d62d9bb67e10b2d514082b8ac7ac0277.tar.bz2 |
Implement command line switch to allow using a FIFO or a socketpair() for IPC on POSIX.
Review URL: http://codereview.chromium.org/14863
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_channel_posix.h')
-rw-r--r-- | chrome/common/ipc_channel_posix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/ipc_channel_posix.h b/chrome/common/ipc_channel_posix.h index e788963..cdc0db2 100644 --- a/chrome/common/ipc_channel_posix.h +++ b/chrome/common/ipc_channel_posix.h @@ -23,6 +23,9 @@ class Channel::ChannelImpl : public MessageLoopForIO::Watcher { void Close(); void set_listener(Listener* listener) { listener_ = listener; } bool Send(Message* message); + void GetClientFileDescriptorMapping(int *src_fd, int *dest_fd); + void OnClientConnected(); + private: const std::wstring PipeName(const std::wstring& channel_id) const; bool CreatePipe(const std::wstring& channel_id, Mode mode); @@ -48,8 +51,13 @@ class Channel::ChannelImpl : public MessageLoopForIO::Watcher { // to keep track of where we are. size_t message_send_bytes_written_; + // If the kTestingChannelID flag is specified, we use a FIFO instead of + // a socketpair(). + bool uses_fifo_; + int server_listen_pipe_; int pipe_; + int client_pipe_; // The client end of our socketpair(). std::string pipe_name_; Listener* listener_; |