6/29/2023 0 Comments Mtasa cefImplementation: CefRequestHandler::OnBeforeBrowe // Return true // Block if explicitly forbidden If ( g_pCore->GetWebCore ()->GetURLState ( UTF16ToMbUTF8 ( ) ) != eURLState::WEBPAGE_ALLOWED ) Return true // Block remote requests in local mode generally If ( scheme = L"http" || scheme = L"https" ) Return true // Cancel if invalid URL (this line will normally not be executed) If ( !CefParseURL ( request->GetURL (), urlParts ) ) Mostly the same as CWebView::OnBeforeBrowse (default)/CefRequestHandler.html#OnBeforeResourceLoad(CefRefPtr%3CCefBrowser%3E,CefRefPtr%3CCefFrame%3E,CefRefPtr%3CCefRequest%3E) //īool CWebView::OnBeforeResourceLoad ( CefRefPtr browser, CefRefPtr frame, CefRefPtr request ) Implementation: CefRequestHandler::OnBeforeResourceLoad //
0 Comments
Leave a Reply. |