mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
25 lines
855 B
C#
25 lines
855 B
C#
using System.Net;
|
|
|
|
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);
|
|
|
|
}
|
|
}
|