CefRequestContext

A request context provides request handling for a set of related browser objects. A request context is specified when creating a new browser object via the CefClient.createBrowser method. Browser objects with different request contexts will never be hosted in the same render process. Browser objects with the same request context may or may not be hosted in the same render process depending on the process model. Browser objects created indirectly via the JavaScript window.open function or targeted links will share the same render process and the same request context as the source browser. When running in single-process mode there is only a single render process (the main process) and so all browsers created in single-process mode will share the same request context. This will be the first request context passed into the CefClient.createBrowser method and all other request context objects will be ignored.

Inheritors

Functions

Link copied to clipboard
Clears all certificate exceptions that were added as part of handling onCertificateError.
Link copied to clipboard
Clears all active and idle connections that Chromium currently has.
Link copied to clipboard
Creates a new context object with the specified handler.
Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
Returns the global context object.
Link copied to clipboard
Returns the handler for this context if any.
Link copied to clipboard
open fun getNativeRef(): Long

open fun getNativeRef(identifer: String): Long
Method is called by the native code to get the reference to an previous stored identifier.
Link copied to clipboard
abstract fun isGlobal(): Boolean
Returns true if this object is the global context.
Link copied to clipboard
open fun setNativeRef(identifer: String, nativeRef: Long)
Method is called by the native code to store a reference to an implemented native JNI counterpart.