Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Custom Local Resource Handling

softoille@gmail.com edited this page Nov 29, 2019 · 1 revision

Chromely supports 3 ways to load html and other files using:

  1. Real website url
  2. Local resource loading with a custom scheme handler
  3. 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:

  1. The scheme name - "local", http or and custom schemes
  2. The domain name - this can be empty or any other domain name if you want to keep same scheme name for multiple schemes.
  3. 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.

Clone this wiki locally