FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/src/client_handler/request_handler.cpp at master · netdebug/cefpython · GitHub
netdebug
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
src
/
client_handler
/
request_handler.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
134 lines (111 loc) · 5.2 KB
Breadcrumbs
cefpython
/
src
/
client_handler
/
request_handler.cpp
Copy path
File metadata and controls
134 lines (111 loc) · 5.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
//
Copyright (c) 2012 CEF Python, see the Authors file.
//
All rights reserved. Licensed under BSD 3-clause license.
//
Project website: https://github.com/cztomczak/cefpython
#
include
"
request_handler.h
"
#
include
"
include/base/cef_logging.h
"
bool
RequestHandler::OnBeforeBrowse
(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
bool
user_gesture,
bool
is_redirect)
{
REQUIRE_UI_THREAD
();
return
RequestHandler_OnBeforeBrowse
(browser, frame, request,
user_gesture, is_redirect);
}
ReturnValue
RequestHandler::OnBeforeResourceLoad
(
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
CefRefPtr<CefRequestCallback> callback)
{
REQUIRE_IO_THREAD
();
bool
retval =
RequestHandler_OnBeforeResourceLoad
(browser, frame, request);
if
(retval) {
return
RV_CANCEL
;
}
else
{
return
RV_CONTINUE
;
}
}
CefRefPtr<CefResourceHandler>
RequestHandler::GetResourceHandler
(
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request)
{
REQUIRE_IO_THREAD
();
return
RequestHandler_GetResourceHandler
(browser, frame, request);
}
void
RequestHandler::OnResourceRedirect
(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
CefRefPtr<CefResponse> response,
CefString& new_url)
{
REQUIRE_IO_THREAD
();
RequestHandler_OnResourceRedirect
(browser, frame, request->
GetURL
(),
new_url, request, response);
}
bool
RequestHandler::GetAuthCredentials
(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
bool
isProxy,
const
CefString& host,
int
port,
const
CefString& realm,
const
CefString& scheme,
CefRefPtr<CefAuthCallback> callback)
{
REQUIRE_IO_THREAD
();
return
RequestHandler_GetAuthCredentials
(browser, frame, isProxy, host,
port, realm, scheme, callback);
}
bool
RequestHandler::OnQuotaRequest
(CefRefPtr<CefBrowser> browser,
const
CefString& origin_url,
int64 new_size,
CefRefPtr<CefRequestCallback> callback) {
REQUIRE_IO_THREAD
();
return
RequestHandler_OnQuotaRequest
(browser, origin_url, new_size,
callback);
}
void
RequestHandler::OnProtocolExecution
(CefRefPtr<CefBrowser> browser,
const
CefString& url,
bool
& allow_os_execution) {
REQUIRE_UI_THREAD
();
RequestHandler_OnProtocolExecution
(browser, url, allow_os_execution);
}
bool
RequestHandler::OnCertificateError
(
CefRefPtr<CefBrowser> browser,
//
not used
cef_errorcode_t
cert_error,
const
CefString& request_url,
CefRefPtr<CefSSLInfo> ssl_info,
//
not used
CefRefPtr<CefRequestCallback> callback)
{
REQUIRE_UI_THREAD
();
return
RequestHandler_OnCertificateError
(cert_error, request_url,
callback);
}
void
RequestHandler::OnRenderProcessTerminated
(CefRefPtr<CefBrowser> browser,
cef_termination_status_t
status)
{
REQUIRE_UI_THREAD
();
LOG
(
ERROR
) <<
"
[Browser process] OnRenderProcessTerminated()
"
;
RequestHandler_OnRendererProcessTerminated
(browser, status);
}
void
RequestHandler::OnPluginCrashed
(CefRefPtr<CefBrowser> browser,
const
CefString& plugin_path)
{
REQUIRE_UI_THREAD
();
RequestHandler_OnPluginCrashed
(browser, plugin_path);
}
bool
RequestHandler::CanGetCookies
(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request) {
REQUIRE_IO_THREAD
();
return
RequestHandler_CanGetCookies
(browser, frame, request);
}
bool
RequestHandler::CanSetCookie
(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
const
CefCookie& cookie) {
REQUIRE_IO_THREAD
();
return
RequestHandler_CanSetCookie
(browser, frame, request, cookie);
}
Back
|
FazBrowse Home
|
New Git URL