So far as I known, application must call CefSchemeRegistrar::AddCustomScheme in CefApp::OnRegisterCustomSchemes to register a custom sheme to set options.
It is OK for static schemes. "static" means when we write the code we already known what schemes to register.
In my case, I am writeing a webbrowser control using CEF, and I need to exposing an API to users to register custom schemes after browser process created.
CefApp::OnRegisterCustomSchemes is called on CefInitialize, that is too early for me. My walkaround is delay the creating of browser process and pass a command line swich like "--schemes=scheme1,sheme2".
Could you please provide a better mechanism for us?
Additionally, I am puzzled why we need to call CefSchemeRegistrar::AddCustomScheme on each process, including gpu process and utility process?
Would you please wrapper it inside CEF?