Index: mojo/edk/embedder/named_platform_handle_utils.h |
diff --git a/mojo/edk/embedder/named_platform_handle_utils.h b/mojo/edk/embedder/named_platform_handle_utils.h |
index f13e1765fabb6d3d417436a397a0dbcceb5f30e8..b767ea0975c27fa5187a91b11d5689db3517cc00 100644 |
--- a/mojo/edk/embedder/named_platform_handle_utils.h |
+++ b/mojo/edk/embedder/named_platform_handle_utils.h |
@@ -18,6 +18,15 @@ namespace edk { |
struct NamedPlatformHandle; |
+#if defined(OS_POSIX) |
+ |
+// The maximum length of the name of a unix domain socket. The standard size on |
+// linux is 108, mac is 104. To maintain consistency across platforms we |
+// standardize on the smaller value. |
+const size_t kMaxSocketNameLength = 104; |
+ |
+#endif |
+ |
struct CreateServerHandleOptions { |
#if defined(OS_WIN) |
// If true, creating a server handle will fail if another pipe with the same |