Custom Local Resource Handling - RupertAvery/Chromely GitHub Wiki
Chromely supports 3 ways to load html and other files using:
- Real website url
- Local resource loading with a custom scheme handler
- File protocol
Please see more info on loading files @ Loading Html.
This wiki page, highlights option 2.
Both CefGlue and CefSharp apps can be configured with custom local resource scheme handlers. This is done in ChromelyConfiguration scheme registration method (RegisterSchemeHandler). In most cases the default resource scheme handler would be enough.
A custom scheme handler would require:
- The scheme name - "local", http or and custom schemes
- The domain name - this can be empty or any other domain name if you want to keep same scheme name for multiple schemes.
- The handler factory (the actual resource scheme handler object must be defined in the factory).
To register a custom scheme handler please check - Configuration.
CefGlue Default Scheme Handler
The custom local resource scheme handler is located here.
CefSharp Default Scheme Handler
The custom local resource scheme handler is located here.