CefPathUtil
Header: cef_path_util.h
Category: System Utilities
Overview
Tasks, threads, parsers, streams, cookies, URL requests, scheme registration, and constant tables.
Free function: CefGetPath
Source File: include/cef_path_util.h
Process / Thread Context: Browser process / any thread ("Can be called on any thread in the browser process").
Purpose: Look up well-known filesystem paths (executable, module, resources, app-data, temp) used by CEF applications.
Usage Example
cpp
bool CefGetPath(PathKey key, CefString& path);cpp
CefString resources_dir;
if (CefGetPath(PK_DIR_RESOURCES, resources_dir)) {
CefString pak = resources_dir.ToString() + "/cef_resources.pak";
// Load bundled resources from pak.
}
CefString exe_path;
CefGetPath(PK_FILE_EXE, exe_path); // current process executable