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

Side by Side Diff: content/public/browser/zygote_handle_linux.h

Issue 2850903002: Clean up Linux zygote creation code (Closed)
Patch Set: Created 3 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
OLDNEW
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 "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/zygote_handle.h" 9 #include "content/public/common/zygote_handle.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // Allocates and initializes a zygote process, and returns the 13 // Allocates and initializes the global generic zygote process, and returns the
14 // ZygoteHandle used to communicate with it. 14 // ZygoteHandle used to communicate with it.
15 CONTENT_EXPORT ZygoteHandle CreateZygote(); 15 CONTENT_EXPORT ZygoteHandle CreateGenericZygote();
16 16
17 // Returns a handle to a global generic zygote object. This function allows the 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 18 // browser to launch and use a single zygote process until the performance
19 // issues around launching multiple zygotes are resolved. 19 // issues around launching multiple zygotes are resolved.
20 CONTENT_EXPORT ZygoteHandle* GetGenericZygote(); 20 // http://crbug.com/569191
21 CONTENT_EXPORT ZygoteHandle GetGenericZygote();
21 22
22 } // namespace content 23 } // namespace content
23 24
24 #endif // CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_ 25 #endif // CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698