Package org.cef.browser
Class CefRequestContext
- java.lang.Object
-
- org.cef.browser.CefRequestContext
-
public abstract class CefRequestContext extends java.lang.Object
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CefRequestContext
createContext(CefRequestContextHandler handler)
Creates a new context object with the specified handler.abstract void
dispose()
static CefRequestContext
getGlobalContext()
Returns the global context object.abstract CefRequestContextHandler
getHandler()
Returns the handler for this context if any.abstract boolean
isGlobal()
Returns true if this object is the global context.
-
-
-
Method Detail
-
getGlobalContext
public static final CefRequestContext getGlobalContext()
Returns the global context object.
-
createContext
public static final CefRequestContext createContext(CefRequestContextHandler handler)
Creates a new context object with the specified handler.
-
dispose
public abstract void dispose()
-
isGlobal
public abstract boolean isGlobal()
Returns true if this object is the global context.
-
getHandler
public abstract CefRequestContextHandler getHandler()
Returns the handler for this context if any.
-
-