-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathapp_factory.h
30 lines (21 loc) · 1.17 KB
/
app_factory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2017 The Chromium Embedded Framework 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 CEF_EXAMPLES_SHARED_APP_FACTORY_H_
#define CEF_EXAMPLES_SHARED_APP_FACTORY_H_
#include "include/cef_app.h"
namespace shared {
// This file declares methods that must be implemented in each executable
// target. CefApp is a global singleton that controls process-specific
// behaviors. The returned CefApp instance will be passed to CefExecuteProcess()
// and/or CefInitialize() by the program entry point implementation. On Linux
// and Windows a single executable is used for all processes. On macOS a
// separate helper executable is used for sub-processes.
// Called in the main browser process to create the CefApp for that process.
CefRefPtr<CefApp> CreateBrowserProcessApp();
// Called in the renderer sub-process to create the CefApp for that process.
CefRefPtr<CefApp> CreateRendererProcessApp();
// Called in other sub-processes to create the CefApp for that process.
CefRefPtr<CefApp> CreateOtherProcessApp();
} // namespace shared
#endif // CEF_EXAMPLES_SHARED_APP_FACTORY_H_