/// <summary> /// Set the referrer URL and policy. If non-NULL the referrer URL must be fully /// qualified with an HTTP or HTTPS scheme component. Any username, password or /// ref component will be removed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_capi.h">cef/include/capi/cef_request_capi.h</see>. /// </remarks> public void SetReferrer(string referrerUrl, CfxReferrerPolicy policy) { var referrerUrl_pinned = new PinnedString(referrerUrl); CfxApi.Request.cfx_request_set_referrer(NativePtr, referrerUrl_pinned.Obj.PinnedPtr, referrerUrl_pinned.Length, (int)policy); referrerUrl_pinned.Obj.Free(); }
/// <summary> /// Set the referrer URL and policy. If non-NULL the referrer URL must be fully /// qualified with an HTTP or HTTPS scheme component. Any username, password or /// ref component will be removed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_capi.h">cef/include/capi/cef_request_capi.h</see>. /// </remarks> public void SetReferrer(string referrerUrl, CfxReferrerPolicy policy) { var call = new CfxRequestSetReferrerRenderProcessCall(); call.@this = proxyId; call.referrerUrl = referrerUrl; call.policy = (int)policy; call.RequestExecution(this); }
/// <summary> /// Set the referrer URL and policy. If non-NULL the referrer URL must be fully /// qualified with an HTTP or HTTPS scheme component. Any username, password or /// ref component will be removed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_capi.h">cef/include/capi/cef_request_capi.h</see>. /// </remarks> public void SetReferrer(string referrerUrl, CfxReferrerPolicy policy) { var call = new CfxRequestSetReferrerRemoteCall(); call.@this = RemotePtr.ptr; call.referrerUrl = referrerUrl; call.policy = (int)policy; call.RequestExecution(RemotePtr.connection); }
/// <summary> /// Set the referrer URL and policy. If non-NULL the referrer URL must be fully /// qualified with an HTTP or HTTPS scheme component. Any username, password or /// ref component will be removed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_capi.h">cef/include/capi/cef_request_capi.h</see>. /// </remarks> public void SetReferrer(string referrerUrl, CfxReferrerPolicy policy) { var call = new CfxRequestSetReferrerRenderProcessCall(); call.self = CfrObject.Unwrap(this); call.referrerUrl = referrerUrl; call.policy = (int)policy; call.RequestExecution(this); }