Hi, all.
My CEF implementation is built the following way:
On main application thread I call CefInitialize, in settings I set browser_subprocess_path to a different .exe, which I implement as well
In the subprocess .exe I implement a class inheriting from CefApp and CefExecuteProcess, passing an instance of that class.
Now what I've seen in documentation regarding custom schema handlers is a bit confusing.
Now I understood I need to implement a class inheriting CefResourceHandler and implement Open method.
Then I need to implement a class inheriting CefSchemeHandlerFactory and call CefRegisterSchemeHandlerFactory. Create method should return an instance of a class inheriting CefResourceHandler.
But in addition I see that for custom schema I also need to override CefApp::OnRegisterCustomSchemes to register custom scheme.
So the question is, what process do I call all that on?
My CefApp implementation is on subprocess .exe, so should I implement CefApp::OnRegisterCustomSchemes there? In my case it means it will run on renderer process.
On the other hand calling CefRegisterSchemeHandlerFactory makes sense right after CefInitialize, which is on browser process.
Is that how I'm supposed to implement it?
Thanks in advance,
Denis.