| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 #include "chrome/common/ipc_channel_posix.h" | 5 #include "chrome/common/ipc_channel_posix.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
| 23 #include "base/lock.h" | 23 #include "base/lock.h" |
| 24 #include "base/logging.h" | 24 #include "base/logging.h" |
| 25 #include "base/process_util.h" | 25 #include "base/process_util.h" |
| 26 #include "base/scoped_ptr.h" | 26 #include "base/scoped_ptr.h" |
| 27 #include "base/string_util.h" | 27 #include "base/string_util.h" |
| 28 #include "base/singleton.h" | 28 #include "base/singleton.h" |
| 29 #include "chrome/common/chrome_counters.h" | 29 #include "chrome/common/chrome_counters.h" |
| 30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
| 31 #include "chrome/common/file_descriptor_posix.h" | 31 #include "chrome/common/descriptor_set_posix.h" |
| 32 #include "chrome/common/ipc_message_utils.h" | 32 #include "chrome/common/ipc_message_utils.h" |
| 33 | 33 |
| 34 namespace IPC { | 34 namespace IPC { |
| 35 | 35 |
| 36 //------------------------------------------------------------------------------ | 36 //------------------------------------------------------------------------------ |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| 39 // When running as a browser, we install the client socket in a specific file | 39 // When running as a browser, we install the client socket in a specific file |
| 40 // descriptor number (@kClientChannelFd). However, we also have to support the | 40 // descriptor number (@kClientChannelFd). However, we also have to support the |
| 41 // case where we are running unittests in the same process. | 41 // case where we are running unittests in the same process. |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 void Channel::GetClientFileDescriptorMapping(int *src_fd, int *dest_fd) { | 767 void Channel::GetClientFileDescriptorMapping(int *src_fd, int *dest_fd) { |
| 768 return channel_impl_->GetClientFileDescriptorMapping(src_fd, dest_fd); | 768 return channel_impl_->GetClientFileDescriptorMapping(src_fd, dest_fd); |
| 769 } | 769 } |
| 770 | 770 |
| 771 void Channel::OnClientConnected() { | 771 void Channel::OnClientConnected() { |
| 772 return channel_impl_->OnClientConnected(); | 772 return channel_impl_->OnClientConnected(); |
| 773 } | 773 } |
| 774 | 774 |
| 775 | 775 |
| 776 } // namespace IPC | 776 } // namespace IPC |
| OLD | NEW |