コード例 #1
0
        protected override bool Open(CefRequest request, out bool handleRequest, CefCallback callback)
        {
            if (client != null)
            {
                throw new InvalidOperationException("DisableCspResourceHandler is not reusable!");
            }

            client = new Client(callback);
            CefRuntime.PostTask(CefThreadId.IO, new CefActionTask(() => frame.CreateUrlRequest(request, client)));
            handleRequest = false;
            return(true);
        }