| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/edk/embedder/platform_channel_pair.h" | 5 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stddef.h> |
| 8 #include <stdint.h> | 9 #include <stdint.h> |
| 9 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 10 #include <sys/types.h> | 11 #include <sys/types.h> |
| 11 #include <unistd.h> | 12 #include <unistd.h> |
| 12 | 13 |
| 13 #include <limits> | 14 #include <limits> |
| 14 | 15 |
| 15 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 16 #include "base/logging.h" | 17 #include "base/logging.h" |
| 17 #include "base/posix/global_descriptors.h" | 18 #include "base/posix/global_descriptors.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 while (IsTargetDescriptorUsed(*handle_passing_info, target_fd)) | 137 while (IsTargetDescriptorUsed(*handle_passing_info, target_fd)) |
| 137 target_fd++; | 138 target_fd++; |
| 138 | 139 |
| 139 handle_passing_info->push_back( | 140 handle_passing_info->push_back( |
| 140 std::pair<int, int>(client_handle_.get().handle, target_fd)); | 141 std::pair<int, int>(client_handle_.get().handle, target_fd)); |
| 141 return base::IntToString(target_fd); | 142 return base::IntToString(target_fd); |
| 142 } | 143 } |
| 143 | 144 |
| 144 } // namespace edk | 145 } // namespace edk |
| 145 } // namespace mojo | 146 } // namespace mojo |
| OLD | NEW |