Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefLoadHandler

CefBase
   |
   +--CefLoadHandler

   in cef_load_handler.h

class CefLoadHandler
extends CefBase

Implement this interface to handle events related to browser load status. The methods of this class will be called on the UI thread.


Inner Classes, Typedefs, and Enums
typedef CefLoadHandler::ErrorCode
          
 
Method Summary
 virtual void OnLoadEnd( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, int httpStatusCode )
          Called when the browser is done loading a frame.
 virtual bool OnLoadError( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefLoadHandler::ErrorCode errorCode, const CefString& failedUrl, CefString& errorText )
          Called when the browser fails to load a resource.
 virtual void OnLoadStart( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame )
          Called when the browser begins loading a frame.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

OnLoadEnd

public virtual void OnLoadEnd( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, int httpStatusCode );
Called when the browser is done loading a frame. The |frame| value will never be empty -- call the IsMain() method to check if this frame is the main frame. Multiple frames may be loading at the same time. Sub-frames may start or continue loading after the main frame load has ended. This method will always be called for all frames irrespective of whether the request completes successfully.

OnLoadError

public virtual bool OnLoadError( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefLoadHandler::ErrorCode errorCode, const CefString& failedUrl, CefString& errorText );
Called when the browser fails to load a resource. |errorCode| is the error code number and |failedUrl| is the URL that failed to load. To provide custom error text assign the text to |errorText| and return true. Otherwise, return false for the default error text. See net\base\net_error_list.h for complete descriptions of the error codes.

OnLoadStart

public virtual void OnLoadStart( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame );
Called when the browser begins loading a frame. The |frame| value will never be empty -- call the IsMain() method to check if this frame is the main frame. Multiple frames may be loading at the same time. Sub-frames may start or continue loading after the main frame load has ended. This method may not be called for a particular frame if the load request for that frame fails.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt