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 #ifndef IPC_IPC_CHANNEL_POSIX_H_ | 5 #ifndef IPC_IPC_CHANNEL_POSIX_H_ |
6 #define IPC_IPC_CHANNEL_POSIX_H_ | 6 #define IPC_IPC_CHANNEL_POSIX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ipc/ipc_channel.h" | 9 #include "ipc/ipc_channel.h" |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Large messages that span multiple pipe buffers, get built-up using | 133 // Large messages that span multiple pipe buffers, get built-up using |
134 // this buffer. | 134 // this buffer. |
135 std::string input_overflow_buf_; | 135 std::string input_overflow_buf_; |
136 std::vector<int> input_overflow_fds_; | 136 std::vector<int> input_overflow_fds_; |
137 | 137 |
138 // True if we are responsible for unlinking the unix domain socket file. | 138 // True if we are responsible for unlinking the unix domain socket file. |
139 bool must_unlink_; | 139 bool must_unlink_; |
140 | 140 |
141 ScopedRunnableMethodFactory<ChannelImpl> factory_; | 141 ScopedRunnableMethodFactory<ChannelImpl> factory_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); | 143 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelImpl); |
144 }; | 144 }; |
145 | 145 |
146 // The maximum length of the name of a pipe for MODE_NAMED_SERVER or | 146 // The maximum length of the name of a pipe for MODE_NAMED_SERVER or |
147 // MODE_NAMED_CLIENT if you want to pass in your own socket. | 147 // MODE_NAMED_CLIENT if you want to pass in your own socket. |
148 // The standard size on linux is 108, mac is 104. To maintain consistency | 148 // The standard size on linux is 108, mac is 104. To maintain consistency |
149 // across platforms we standardize on the smaller value. | 149 // across platforms we standardize on the smaller value. |
150 static const size_t kMaxPipeNameLength = 104; | 150 static const size_t kMaxPipeNameLength = 104; |
151 | 151 |
152 } // namespace IPC | 152 } // namespace IPC |
153 | 153 |
154 #endif // IPC_IPC_CHANNEL_POSIX_H_ | 154 #endif // IPC_IPC_CHANNEL_POSIX_H_ |
OLD | NEW |