This directory contains the "resource_manager" target which demonstrates how to handle resource requests using CefResourceManager.
See the shared library target for details common to all executable targets.
The "resource_manager" target is implemented as follows:
- Define the target-specific CMake build configuration in the CMakeLists.txt file.
- Call the shared entry point functions that initialize, run and shut down CEF.
- Uses the minimal target implementation.
- Implement the shared::Create*ProcessApp functions to create a CefApp instance appropriate to the process type.
- Browser process: app_browser_impl.cc implements the
shared::CreateBrowserProcessApp
method to return aCefApp
instance. - Other processes: Uses the minimal target implementation.
- Browser process: app_browser_impl.cc implements the
- Provide a concrete CefClient implementation in client_impl.cc and client_impl.h to handle CefBrowser callbacks.
- Creates a
CefResourceManager
instance to handle resource requests. - Defines a
RequestDumpResourceProvider
class to demonstrate customCefResourceManager::Provider
handling. - Registers the
CefResourceManager::Provider
instances with theCefResourceManager
.
- Creates a
- Windows resource loading implementation in resource_util_win_impl.cc and resource.rc.
- Implements the shared::GetResourceId method to map resource paths to BINARY ID values.
- Defines a BINARY resource to include logo.png and resource_manager.html in the executable.
See the shared library target for configuration details.
See the shared library target for setup and build instructions.