OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BROWSER_ZYGOTE_HANDLE_LINUX_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_ |
6 #define CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_ | 6 #define CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_ |
7 | 7 |
8 #include <cstddef> | |
9 | |
10 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
11 #include "content/public/common/zygote_handle.h" | 9 #include "content/public/common/zygote_handle.h" |
12 | 10 |
13 namespace content { | 11 namespace content { |
14 | 12 |
15 // Allocates and initializes a zygote process, and returns the | 13 // Allocates and initializes a zygote process, and returns the |
16 // ZygoteHandle used to communicate with it. | 14 // ZygoteHandle used to communicate with it. |
17 CONTENT_EXPORT ZygoteHandle CreateZygote(); | 15 CONTENT_EXPORT ZygoteHandle CreateZygote(); |
18 | 16 |
| 17 // Returns a handle to a global generic zygote object. This function allows the |
| 18 // browser to launch and use a single zygote process until the performance |
| 19 // issues around launching multiple zygotes are resolved. |
| 20 CONTENT_EXPORT ZygoteHandle* GetGenericZygote(); |
| 21 |
19 } // namespace content | 22 } // namespace content |
20 | 23 |
21 #endif // CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_ | 24 #endif // CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_ |
OLD | NEW |