forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload_handler.h
More file actions
36 lines (27 loc) · 1.11 KB
/
load_handler.h
File metadata and controls
36 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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<CefBrowser> browser,
bool isLoading,
bool canGoBack,
bool canGoForward) override;
void OnLoadStart(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
TransitionType transition_type) override;
void OnLoadEnd(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
int httpStatusCode) override;
void OnLoadError(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
cef_errorcode_t errorCode,
const CefString& errorText,
const CefString& failedUrl) override;
private:
IMPLEMENT_REFCOUNTING(LoadHandler);
};