| OLD | NEW |
| 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_ZYGOTE_ZYGOTE_LINUX_H_ | 5 #ifndef CONTENT_ZYGOTE_ZYGOTE_LINUX_H_ |
| 6 #define CONTENT_ZYGOTE_ZYGOTE_LINUX_H_ | 6 #define CONTENT_ZYGOTE_ZYGOTE_LINUX_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/containers/small_map.h" | 13 #include "base/containers/small_map.h" |
| 14 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
| 15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 16 #include "base/posix/global_descriptors.h" | 16 #include "base/posix/global_descriptors.h" |
| 17 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
| 18 #include "base/process/process.h" | 18 #include "base/process/process.h" |
| 19 #include "base/process/process_handle.h" | 19 #include "base/process/process_handle.h" |
| 20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class Pickle; | |
| 24 class PickleIterator; | 23 class PickleIterator; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace content { | 26 namespace content { |
| 28 | 27 |
| 29 class ZygoteForkDelegate; | 28 class ZygoteForkDelegate; |
| 30 | 29 |
| 31 // This is the object which implements the zygote. The ZygoteMain function, | 30 // This is the object which implements the zygote. The ZygoteMain function, |
| 32 // which is called from ChromeMain, simply constructs one of these objects and | 31 // which is called from ChromeMain, simply constructs one of these objects and |
| 33 // runs it. | 32 // runs it. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // children. | 151 // children. |
| 153 std::vector<int> extra_fds_; | 152 std::vector<int> extra_fds_; |
| 154 | 153 |
| 155 // The vector contains the child processes that need to be reaped. | 154 // The vector contains the child processes that need to be reaped. |
| 156 std::vector<ZygoteProcessInfo> to_reap_; | 155 std::vector<ZygoteProcessInfo> to_reap_; |
| 157 }; | 156 }; |
| 158 | 157 |
| 159 } // namespace content | 158 } // namespace content |
| 160 | 159 |
| 161 #endif // CONTENT_ZYGOTE_ZYGOTE_LINUX_H_ | 160 #endif // CONTENT_ZYGOTE_ZYGOTE_LINUX_H_ |
| OLD | NEW |