mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
29 lines
941 B
C#
29 lines
941 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
|
|
namespace CefSharp
|
|
{
|
|
public enum NavigationType
|
|
{
|
|
LinkClicked,
|
|
FormSubmitted,
|
|
BackForward,
|
|
Reload,
|
|
FormResubmitted,
|
|
Other
|
|
};
|
|
|
|
public interface IRequestHandler
|
|
{
|
|
bool OnBeforeBrowse(IWebBrowser browser, IRequest request, NavigationType navigationType, bool isRedirect);
|
|
bool OnBeforeResourceLoad(IWebBrowser browser, IRequestResponse requestResponse);
|
|
void OnResourceResponse(IWebBrowser browser, string url, int status, string statusText, string mimeType, WebHeaderCollection headers);
|
|
bool GetDownloadHandler(IWebBrowser browser, out IDownloadHandler handler);
|
|
bool GetAuthCredentials(IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, ref string username, ref string password);
|
|
|
|
}
|
|
}
|