mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Initial version 75 upgrade and NetworkService changes
Compiles, that's about it at this point, there are major CEF breaking changes, and lots to be addressed. Browser Process (main process) - Removed IResourceHandlerFactory as it no longer fits with the structure that CEF provides - New IResourceRequestHandler interface added, not plumbed in yet - CefSettings - Add RootCachePath and ApplicationClientIdForFileScanning BrowserSubprocess (render process) - SendProcessMessage was moved from CefBrowser to CefFrame - OnBrowserCreated added extraInfo param The BrowserSubprocess changes for this upgrade should be complete
This commit is contained in:
@@ -21,7 +21,7 @@ namespace CefSharp
|
||||
bool JavascriptAsyncMethodHandler::Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval, CefString& exception)
|
||||
{
|
||||
auto context = CefV8Context::GetCurrentContext();
|
||||
auto browser = context->GetBrowser();
|
||||
auto frame = context->GetFrame();
|
||||
|
||||
CefRefPtr<CefV8Value> promiseData;
|
||||
CefRefPtr<CefV8Exception> promiseException;
|
||||
@@ -59,13 +59,13 @@ namespace CefSharp
|
||||
SerializeV8Object(arguments[i], params, i, _callbackRegistry);
|
||||
}
|
||||
|
||||
SetInt64(argList, 0, context->GetFrame()->GetIdentifier());
|
||||
SetInt64(argList, 0, frame->GetIdentifier());
|
||||
SetInt64(argList, 1, _objectId);
|
||||
SetInt64(argList, 2, callbackId);
|
||||
argList->SetString(3, name);
|
||||
argList->SetList(4, params);
|
||||
|
||||
browser->SendProcessMessage(CefProcessId::PID_BROWSER, request);
|
||||
frame->SendProcessMessage(CefProcessId::PID_BROWSER, request);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user