| 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_UNIX_DOMAIN_SOCKET_UTIL_H_ | 5 #ifndef IPC_UNIX_DOMAIN_SOCKET_UTIL_H_ |
| 6 #define IPC_UNIX_DOMAIN_SOCKET_UTIL_H_ | 6 #define IPC_UNIX_DOMAIN_SOCKET_UTIL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 8 #include <sys/types.h> | 9 #include <sys/types.h> |
| 9 | 10 |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "ipc/ipc_export.h" | 13 #include "ipc/ipc_export.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class FilePath; | 16 class FilePath; |
| 16 } // namespace base | 17 } // namespace base |
| 17 | 18 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 56 |
| 56 // The maximum length of the name of a socket for MODE_NAMED_SERVER or | 57 // The maximum length of the name of a socket for MODE_NAMED_SERVER or |
| 57 // MODE_NAMED_CLIENT if you want to pass in your own socket. | 58 // MODE_NAMED_CLIENT if you want to pass in your own socket. |
| 58 // The standard size on linux is 108, mac is 104. To maintain consistency | 59 // The standard size on linux is 108, mac is 104. To maintain consistency |
| 59 // across platforms we standardize on the smaller value. | 60 // across platforms we standardize on the smaller value. |
| 60 static const size_t kMaxSocketNameLength = 104; | 61 static const size_t kMaxSocketNameLength = 104; |
| 61 | 62 |
| 62 } // namespace IPC | 63 } // namespace IPC |
| 63 | 64 |
| 64 #endif // IPC_UNIX_DOMAIN_SOCKET_UTIL_H_ | 65 #endif // IPC_UNIX_DOMAIN_SOCKET_UTIL_H_ |
| OLD | NEW |