SO3Engine
|
SO3EmbeddedWebNavigatorLoadHandler.cpp
Go to the documentation of this file.
35 WebNavigatorLoadHandler::WebNavigatorLoadHandler(CefRefPtr<WebNavigatorClient>& parentWebNavigatorClientInstance, const ScolWindowHandle& scolMainWindow) : WebNavigatorHandler(parentWebNavigatorClientInstance, scolMainWindow)
39 WebNavigatorLoadHandler::WebNavigatorLoadHandler() : WebNavigatorHandler(CefRefPtr<WebNavigatorClient>(), 0)
48 void WebNavigatorLoadHandler::OnLoadStart(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame)
53 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
54 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeLoadStart, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), frame->GetName()));
58 void WebNavigatorLoadHandler::OnLoadEnd(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, int httpStatusCode)
63 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
64 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeLoadEnd, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), frame->GetName(), httpStatusCode));
68 bool WebNavigatorLoadHandler::OnLoadError(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, ErrorCode errorCode, const CefString& failedUrl, CefString& errorText)
73 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
74 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeLoadError, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), frame->GetName(), errorCode, failedUrl, std::string(errorText)));
Definition SO3DataScol.h:38
Generated by 1.9.8