/// <summary> /// Called on the browser process UI thread immediately after the request /// context has been initialized. /// </summary> protected internal unsafe virtual void OnRequestContextInitialized(CefRequestContext requestContext) { }
/// <summary> /// Returns true (1) if this object is pointing to the same context as |that| /// object. /// </summary> public unsafe virtual bool IsSame(CefRequestContext other) { return(SafeCall(NativeInstance->IsSame((other != null) ? other.GetNativeInstance() : null) != 0)); }
/// <summary> /// Returns the global context object. /// </summary> public static CefRequestContext GetGlobalContext() { return(CefRequestContext.Wrap(CefRequestContext.Create, CefNativeApi.cef_request_context_get_global_context())); }
public WindowlessWebView(string url, CefBrowserSettings settings, CefDictionaryValue extraInfo, CefRequestContext requestContext) { CefWindowInfo windowInfo = null; try { windowInfo = new CefWindowInfo(); InitializeInternal(windowInfo); if (!CefApi.CreateBrowser(windowInfo, ViewGlue.Client, url ?? "about:blank", settings ?? DefaultBrowserSettings, extraInfo, requestContext)) { throw new InvalidOperationException(); } } finally { windowInfo?.Dispose(); } }
/// <summary> /// Called on the browser process UI thread immediately after the request /// context has been initialized. /// </summary> public unsafe virtual void OnRequestContextInitialized(CefRequestContext requestContext) { }