Chromium Embedded Framework (CEF)
129.0.1+g463bda9+chromium-129.0.6668.12
|
#include "include/cef_base.h"
#include "include/cef_browser_process_handler.h"
#include "include/cef_command_line.h"
#include "include/cef_render_process_handler.h"
#include "include/cef_resource_bundle_handler.h"
#include "include/cef_scheme.h"
Classes | |
class | CefApp |
Implement this interface to provide handler implementations. More... | |
Functions | |
int | CefExecuteProcess (const CefMainArgs &args, CefRefPtr< CefApp > application, void *windows_sandbox_info) |
This function should be called from the application entry point function to execute a secondary process. More... | |
bool | CefInitialize (const CefMainArgs &args, const CefSettings &settings, CefRefPtr< CefApp > application, void *windows_sandbox_info) |
This function should be called on the main application thread to initialize the CEF browser process. More... | |
int | CefGetExitCode () |
This function can optionally be called on the main application thread after CefInitialize to retrieve the initialization exit code. More... | |
void | CefShutdown () |
This function should be called on the main application thread to shut down the CEF browser process before the application exits. More... | |
void | CefDoMessageLoopWork () |
Perform a single iteration of CEF message loop processing. More... | |
void | CefRunMessageLoop () |
Run the CEF message loop. More... | |
void | CefQuitMessageLoop () |
Quit the CEF message loop that was started by calling CefRunMessageLoop(). More... | |
void CefDoMessageLoopWork | ( | ) |
Perform a single iteration of CEF message loop processing.
This function is provided for cases where the CEF message loop must be integrated into an existing application message loop. Use of this function is not recommended for most users; use either the CefRunMessageLoop() function or cef_settings_t.multi_threaded_message_loop if possible. When using this function care must be taken to balance performance against excessive CPU usage. It is recommended to enable the cef_settings_t.external_message_pump option when using this function so that CefBrowserProcessHandler::OnScheduleMessagePumpWork() callbacks can facilitate the scheduling process. This function should only be called on the main application thread and only if CefInitialize() is called with a cef_settings_t.multi_threaded_message_loop value of false. This function will not block.
int CefExecuteProcess | ( | const CefMainArgs & | args, |
CefRefPtr< CefApp > | application, | ||
void * | windows_sandbox_info | ||
) |
This function should be called from the application entry point function to execute a secondary process.
It can be used to run secondary processes from the browser client executable (default behavior) or from a separate executable specified by the cef_settings_t.browser_subprocess_path value. If called for the browser process (identified by no "type" command-line value) it will return immediately with a value of -1. If called for a recognized secondary process it will block until the process should exit and then return the process exit code. The |application| parameter may be empty. The |windows_sandbox_info| parameter is only used on Windows and may be NULL (see cef_sandbox_win.h for details).
int CefGetExitCode | ( | ) |
This function can optionally be called on the main application thread after CefInitialize to retrieve the initialization exit code.
When CefInitialize returns true the exit code will be 0 (CEF_RESULT_CODE_NORMAL_EXIT). Otherwise, see cef_resultcode_t for possible exit code values including browser process initialization errors and normal early exit conditions (such as CEF_RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED for process singleton relaunch behavior).
bool CefInitialize | ( | const CefMainArgs & | args, |
const CefSettings & | settings, | ||
CefRefPtr< CefApp > | application, | ||
void * | windows_sandbox_info | ||
) |
This function should be called on the main application thread to initialize the CEF browser process.
The |application| parameter may be empty. Returns true if initialization succeeds. Returns false if initialization fails or if early exit is desired (for example, due to process singleton relaunch behavior). If this function returns false then the application should exit immediately without calling any other CEF functions except, optionally, CefGetErrorCode. The |windows_sandbox_info| parameter is only used on Windows and may be NULL (see cef_sandbox_win.h for details).
void CefQuitMessageLoop | ( | ) |
Quit the CEF message loop that was started by calling CefRunMessageLoop().
This function should only be called on the main application thread and only if CefRunMessageLoop() was used.
void CefRunMessageLoop | ( | ) |
Run the CEF message loop.
Use this function instead of an application- provided message loop to get the best balance between performance and CPU usage. This function should only be called on the main application thread and only if CefInitialize() is called with a cef_settings_t.multi_threaded_message_loop value of false. This function will block until a quit message is received by the system.
void CefShutdown | ( | ) |
This function should be called on the main application thread to shut down the CEF browser process before the application exits.
Do not call any other CEF functions after calling this function.