summaryrefslogtreecommitdiffstats
path: root/content/public/browser/zygote_handle_linux.h
blob: 6419b7475b697bd692b6d2b1f8be86af40cbcb71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_
#define CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_

#include "content/common/content_export.h"
#include "content/public/common/zygote_handle.h"

namespace content {

// Allocates and initializes a zygote process, and returns the
// ZygoteHandle used to communicate with it.
CONTENT_EXPORT ZygoteHandle CreateZygote();

// Returns a handle to a global generic zygote object. This function allows the
// browser to launch and use a single zygote process until the performance
// issues around launching multiple zygotes are resolved.
CONTENT_EXPORT ZygoteHandle* GetGenericZygote();

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_ZYGOTE_HANDLE_LINUX_H_