@@ -228,19 +228,6 @@ void ClientHandler::OnBeforeClose(CefRefPtr<CefBrowser> browser) {
228228// The methods of this class will be called on the UI thread.
229229// /
230230
231- // /
232- // Called when the loading state has changed.
233- // /
234- /* --cef()--*/
235- void ClientHandler::OnLoadingStateChange (CefRefPtr<CefBrowser> browser,
236- bool isLoading,
237- bool canGoBack,
238- bool canGoForward) {
239- REQUIRE_UI_THREAD ();
240- DisplayHandler_OnLoadingStateChange (browser, isLoading, canGoBack,
241- canGoForward);
242- }
243-
244231// /
245232// Called when a frame's address has changed.
246233// /
@@ -357,7 +344,7 @@ bool ClientHandler::OnKeyEvent(CefRefPtr<CefBrowser> browser,
357344// Called on the UI thread before browser navigation. Return true to cancel
358345// the navigation or false to allow the navigation to proceed. The |request|
359346// object cannot be modified in this callback.
360- // CefDisplayHandler ::OnLoadingStateChange will be called twice in all cases.
347+ // CefLoadHandler ::OnLoadingStateChange will be called twice in all cases.
361348// If the navigation is allowed CefLoadHandler::OnLoadStart and
362349// CefLoadHandler::OnLoadEnd will be called. If the navigation is canceled
363350// CefLoadHandler::OnLoadError will be called with an |errorCode| value of
@@ -456,21 +443,6 @@ bool ClientHandler::OnQuotaRequest(CefRefPtr<CefBrowser> browser,
456443 // Default: return false;
457444}
458445
459- // /
460- // Called on the IO thread to retrieve the cookie manager. |main_url| is the
461- // URL of the top-level frame. Cookies managers can be unique per browser or
462- // shared across multiple browsers. The global cookie manager will be used if
463- // this method returns NULL.
464- // /
465- /* --cef()--*/
466- CefRefPtr<CefCookieManager> ClientHandler::GetCookieManager (
467- CefRefPtr<CefBrowser> browser,
468- const CefString& main_url) {
469- REQUIRE_IO_THREAD ();
470- return RequestHandler_GetCookieManager (browser, main_url);
471- // Default: return NULL.
472- }
473-
474446// /
475447// Called on the UI thread to handle requests for URLs with an unknown
476448// protocol component. Set |allow_os_execution| to true to attempt execution
@@ -520,6 +492,29 @@ bool ClientHandler::OnCertificateError(
520492 // Default: return false;
521493}
522494
495+ // /
496+ // Called when the render process terminates unexpectedly. |status| indicates
497+ // how the process terminated.
498+ // /
499+ /* --cef()--*/
500+ void ClientHandler::OnRenderProcessTerminated (CefRefPtr<CefBrowser> browser,
501+ cef_termination_status_t status) {
502+ REQUIRE_UI_THREAD ();
503+ DebugLog (" Browser: OnRenderProcessTerminated()" );
504+ RequestHandler_OnRendererProcessTerminated (browser, status);
505+ }
506+
507+ // /
508+ // Called when a plugin has crashed. |plugin_path| is the path of the plugin
509+ // that crashed.
510+ // /
511+ /* --cef()--*/
512+ void ClientHandler::OnPluginCrashed (CefRefPtr<CefBrowser> browser,
513+ const CefString& plugin_path) {
514+ REQUIRE_UI_THREAD ();
515+ RequestHandler_OnPluginCrashed (browser, plugin_path);
516+ }
517+
523518// --------------------------------------------------------------------------
524519// CefLoadHandler
525520// --------------------------------------------------------------------------
@@ -529,6 +524,19 @@ bool ClientHandler::OnCertificateError(
529524// The methods of this class will be called on the UI thread.
530525// /
531526
527+ // /
528+ // Called when the loading state has changed.
529+ // /
530+ /* --cef()--*/
531+ void ClientHandler::OnLoadingStateChange (CefRefPtr<CefBrowser> browser,
532+ bool isLoading,
533+ bool canGoBack,
534+ bool canGoForward) {
535+ REQUIRE_UI_THREAD ();
536+ LoadHandler_OnLoadingStateChange (browser, isLoading, canGoBack,
537+ canGoForward);
538+ }
539+
532540// /
533541// Called when the browser begins loading a frame. The |frame| value will
534542// never be empty -- call the IsMain() method to check if this frame is the
@@ -576,29 +584,6 @@ void ClientHandler::OnLoadError(CefRefPtr<CefBrowser> browser,
576584 LoadHandler_OnLoadError (browser, frame, errorCode, errorText, failedUrl);
577585}
578586
579- // /
580- // Called when the render process terminates unexpectedly. |status| indicates
581- // how the process terminated.
582- // /
583- /* --cef()--*/
584- void ClientHandler::OnRenderProcessTerminated (CefRefPtr<CefBrowser> browser,
585- cef_termination_status_t status) {
586- REQUIRE_UI_THREAD ();
587- DebugLog (" Browser: OnRenderProcessTerminated()" );
588- LoadHandler_OnRendererProcessTerminated (browser, status);
589- }
590-
591- // /
592- // Called when a plugin has crashed. |plugin_path| is the path of the plugin
593- // that crashed.
594- // /
595- /* --cef()--*/
596- void ClientHandler::OnPluginCrashed (CefRefPtr<CefBrowser> browser,
597- const CefString& plugin_path) {
598- REQUIRE_UI_THREAD ();
599- LoadHandler_OnPluginCrashed (browser, plugin_path);
600- }
601-
602587// ----------------------------------------------------------------------------
603588// CefRenderHandler
604589// ----------------------------------------------------------------------------
0 commit comments