// Copyright (c) 2016 CEF Python. See the Authors and License files.
#include "common/cefpython_public_api.h"
#include "include/cef_load_handler.h"
class LoadHandler : public CefLoadHandler
{
public:
LoadHandler(){}
virtual ~LoadHandler(){}
typedef cef_transition_type_t TransitionType;
void OnLoadingStateChange(CefRefPtr browser,
bool isLoading,
bool canGoBack,
bool canGoForward) override;
void OnLoadStart(CefRefPtr browser,
CefRefPtr frame,
TransitionType transition_type) override;
void OnLoadEnd(CefRefPtr browser,
CefRefPtr frame,
int httpStatusCode) override;
void OnLoadError(CefRefPtr browser,
CefRefPtr frame,
cef_errorcode_t errorCode,
const CefString& errorText,
const CefString& failedUrl) override;
private:
IMPLEMENT_REFCOUNTING(LoadHandler);
};