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

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

Issue 1643533006: Use a single, generic, global zygote to temporarily resolve perf regressions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused ppapi header Created 4 years, 10 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
« no previous file with comments | « content/browser/zygote_host/zygote_handle_linux.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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_
OLDNEW
« no previous file with comments | « content/browser/zygote_host/zygote_handle_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698