OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ZYGOTE_FORK_DELEGATE_LINUX_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_ZYGOTE_FORK_DELEGATE_LINUX_H_ |
6 #define CONTENT_PUBLIC_COMMON_ZYGOTE_FORK_DELEGATE_LINUX_H_ | 6 #define CONTENT_PUBLIC_COMMON_ZYGOTE_FORK_DELEGATE_LINUX_H_ |
7 #pragma once | |
8 | 7 |
9 #include <unistd.h> | 8 #include <unistd.h> |
10 | 9 |
11 #include <string> | 10 #include <string> |
12 #include <vector> | 11 #include <vector> |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // The ZygoteForkDelegate allows the Chrome Linux zygote to delegate | 15 // The ZygoteForkDelegate allows the Chrome Linux zygote to delegate |
17 // fork operations to another class that knows how to do some | 16 // fork operations to another class that knows how to do some |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 49 |
51 // After a successful for, signal the child to indicate that | 50 // After a successful for, signal the child to indicate that |
52 // the child's PID has been received. Also communicate the | 51 // the child's PID has been received. Also communicate the |
53 // channel switch as a part of acknowledgement message. | 52 // channel switch as a part of acknowledgement message. |
54 virtual bool AckChild(int fd, const std::string& channel_switch) = 0; | 53 virtual bool AckChild(int fd, const std::string& channel_switch) = 0; |
55 }; | 54 }; |
56 | 55 |
57 } // namespace content | 56 } // namespace content |
58 | 57 |
59 #endif // CONTENT_PUBLIC_COMMON_ZYGOTE_FORK_DELEGATE_LINUX_H_ | 58 #endif // CONTENT_PUBLIC_COMMON_ZYGOTE_FORK_DELEGATE_LINUX_H_ |
OLD | NEW |