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

Side by Side Diff: content/public/common/child_process_sandbox_support_linux.h

Issue 269543014: Use RecvMsgWithPid to find real PID for zygote children (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore error handling code paths Created 6 years, 7 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
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_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // offset: offset into the table or entire font where loading should start. 43 // offset: offset into the table or entire font where loading should start.
44 // The offset must be between 0 and 1 GB - 1. 44 // The offset must be between 0 and 1 GB - 1.
45 // output: a buffer of size output_length that gets the data. can be 0, in 45 // output: a buffer of size output_length that gets the data. can be 0, in
46 // which case output_length will be set to the required size in bytes. 46 // which case output_length will be set to the required size in bytes.
47 // output_length: size of output, if it's not 0. 47 // output_length: size of output, if it's not 0.
48 // 48 //
49 // returns: true on success. 49 // returns: true on success.
50 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset, 50 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset,
51 uint8_t* output, size_t* output_length); 51 uint8_t* output, size_t* output_length);
52 52
53 // Sends a zygote child "ping" message to browser process via socket |fd|.
54 // Returns true on success.
55 CONTENT_EXPORT bool SendZygoteChildPing(int fd);
56
53 }; // namespace content 57 }; // namespace content
54 58
55 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 59 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
OLDNEW
« no previous file with comments | « content/common/zygote_commands_linux.h ('k') | content/public/common/zygote_fork_delegate_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698