forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser_process_handler.pyx
More file actions
25 lines (22 loc) · 959 Bytes
/
browser_process_handler.pyx
File metadata and controls
25 lines (22 loc) · 959 Bytes
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
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
include "cefpython.pyx"
cdef public void BrowserProcessHandler_OnRenderProcessThreadCreated(
CefRefPtr[CefListValue] extra_info
) except * with gil:
try:
# Keys 0 and 1 are already set in C++ code - to pass debug options.
pass
except:
(exc_type, exc_value, exc_trace) = sys.exc_info()
sys.excepthook(exc_type, exc_value, exc_trace)
cdef public void BrowserProcessHandler_OnBeforeChildProcessLaunch(
CefRefPtr[CefCommandLine] cefCommandLine
) except * with gil:
try:
AppendSwitchesToCommandLine(cefCommandLine, g_commandLineSwitches)
Debug("BrowserProcessHandler_OnBeforeChildProcessLaunch()")
except:
(exc_type, exc_value, exc_trace) = sys.exc_info()
sys.excepthook(exc_type, exc_value, exc_trace)