Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: mojo/edk/embedder/named_platform_handle_utils.h

Issue 2500263004: Remove ipc/unix_domain_socket_util.* (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/unix_domain_socket_util_unittest.cc ('k') | mojo/edk/embedder/named_platform_handle_utils_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ipc/unix_domain_socket_util_unittest.cc ('k') | mojo/edk/embedder/named_platform_handle_utils_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698