|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBase | +--CefRequestHandlerin cef_request_handler.h
Implement this interface to handle events related to browser requests. The methods of this class will be called on the thread indicated.
Inner Classes, Typedefs, and Enums | |
typedef |
CefRequestHandler::NavType
|
Method Summary | |
virtual bool |
GetAuthCredentials( CefRefPtr< CefBrowser > browser, bool isProxy, const CefString& host, int port, const CefString& realm, const CefString& scheme, CefString& username, CefString& password )
Called on the IO thread when the browser needs credentials from the user. |
virtual CefRefPtr< CefCookieManager > |
GetCookieManager( CefRefPtr< CefBrowser > browser, const CefString& main_url )
Called on the IO thread to retrieve the cookie manager. |
virtual bool |
GetDownloadHandler( CefRefPtr< CefBrowser > browser, const CefString& mimeType, const CefString& fileName, int64 contentLength, CefRefPtr< CefDownloadHandler >& handler )
Called on the UI thread when a server indicates via the 'Content-Disposition' header that a response represents a file to download. |
virtual bool |
OnBeforeBrowse( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRequestHandler::NavType navType, bool isRedirect )
Called on the UI thread before browser navigation. |
virtual bool |
OnBeforeResourceLoad( CefRefPtr< CefBrowser > browser, CefRefPtr< CefRequest > request, CefString& redirectUrl, CefRefPtr< CefStreamReader >& resourceStream, CefRefPtr< CefResponse > response, int loadFlags )
Called on the IO thread before a resource is loaded. |
virtual bool |
OnProtocolExecution( CefRefPtr< CefBrowser > browser, const CefString& url, bool& allowOSExecution )
Called on the IO thread to handle requests for URLs with an unknown protocol component. |
virtual void |
OnResourceRedirect( CefRefPtr< CefBrowser > browser, const CefString& old_url, CefString& new_url )
Called on the IO thread when a resource load is redirected. |
virtual void |
OnResourceResponse( CefRefPtr< CefBrowser > browser, const CefString& url, CefRefPtr< CefResponse > response, CefRefPtr< CefContentFilter >& filter )
Called on the UI thread after a response to the resource request is received. |
Methods inherited from class CefBase |
AddRef, Release, GetRefCt |
Method Detail |
public virtual bool GetAuthCredentials( CefRefPtr< CefBrowser > browser, bool isProxy, const CefString& host, int port, const CefString& realm, const CefString& scheme, CefString& username, CefString& password );
public virtual CefRefPtr< CefCookieManager > GetCookieManager( CefRefPtr< CefBrowser > browser, const CefString& main_url );
public virtual bool GetDownloadHandler( CefRefPtr< CefBrowser > browser, const CefString& mimeType, const CefString& fileName, int64 contentLength, CefRefPtr< CefDownloadHandler >& handler );
public virtual bool OnBeforeBrowse( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRequestHandler::NavType navType, bool isRedirect );
public virtual bool OnBeforeResourceLoad( CefRefPtr< CefBrowser > browser, CefRefPtr< CefRequest > request, CefString& redirectUrl, CefRefPtr< CefStreamReader >& resourceStream, CefRefPtr< CefResponse > response, int loadFlags );
public virtual bool OnProtocolExecution( CefRefPtr< CefBrowser > browser, const CefString& url, bool& allowOSExecution );
public virtual void OnResourceRedirect( CefRefPtr< CefBrowser > browser, const CefString& old_url, CefString& new_url );
public virtual void OnResourceResponse( CefRefPtr< CefBrowser > browser, const CefString& url, CefRefPtr< CefResponse > response, CefRefPtr< CefContentFilter >& filter );
|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |