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

Side by Side Diff: content/common/zygote_commands_linux.h

Issue 11092109: linux: Increase max zygote message size from 2 KB to 8 KB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_ 5 #ifndef CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_
6 #define CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_ 6 #define CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // Contents of the initial message sent from the zygote to the browser when it 10 // Contents of the initial message sent from the zygote to the browser when it
11 // is ready to go. 11 // is ready to go.
12 static const char kZygoteHelloMessage[] = "ZYGOTE_OK"; 12 static const char kZygoteHelloMessage[] = "ZYGOTE_OK";
13 13
14 // Maximum allowable length for messages sent to the zygote. 14 // Maximum allowable length for messages sent to the zygote.
15 const size_t kZygoteMaxMessageLength = 2048; 15 const size_t kZygoteMaxMessageLength = 8192;
16 16
17 // File descriptors initialized by the Zygote Host 17 // File descriptors initialized by the Zygote Host
18 const int kZygoteSocketPairFd = 3; 18 const int kZygoteSocketPairFd = 3;
19 const int kZygoteRendererSocketFd = 5; 19 const int kZygoteRendererSocketFd = 5;
20 // This file descriptor is special. It is passed to the Zygote and a setuid 20 // This file descriptor is special. It is passed to the Zygote and a setuid
21 // helper will be called to locate the process of the Zygote on the system. 21 // helper will be called to locate the process of the Zygote on the system.
22 // This mechanism is used when multiple PID namespaces exist because of the 22 // This mechanism is used when multiple PID namespaces exist because of the
23 // setuid sandbox. 23 // setuid sandbox.
24 // It is very important that this file descriptor does not exist in multiple 24 // It is very important that this file descriptor does not exist in multiple
25 // processes. 25 // processes.
(...skipping 12 matching lines...) Expand all
38 // Check what happend to a child process. 38 // Check what happend to a child process.
39 kZygoteCommandGetTerminationStatus = 2, 39 kZygoteCommandGetTerminationStatus = 2,
40 40
41 // Read a bitmask of kSandboxLinux* 41 // Read a bitmask of kSandboxLinux*
42 kZygoteCommandGetSandboxStatus = 3 42 kZygoteCommandGetSandboxStatus = 3
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_ 47 #endif // CONTENT_COMMON_ZYGOTE_COMMANDS_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698