Click or drag to resize

ResourceRequestHandler Class

Version 98.1.210
Default implementation of IResourceRequestHandler. This class provides default implementations of the methods from IResourceRequestHandler, therefore providing a convenience base class for any custom resource request handler.
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerResourceRequestHandler

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 98.1.210.0 (98.1.210.0)
Syntax
public class ResourceRequestHandler : IResourceRequestHandler, 
	IDisposable

The ResourceRequestHandler type exposes the following members.

Constructors
  NameDescription
Public methodResourceRequestHandler
Initializes a new instance of the ResourceRequestHandler class
Top
Methods
  NameDescription
Protected methodDispose
Called when the unmanaged resource is freed. Unmanaged resources are ref counted and freed when the last reference is released, this works differently to .Net garbage collection.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetCookieAccessFilter
Called on the CEF IO thread before a resource request is loaded. To optionally filter cookies for the request return a ICookieAccessFilter object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetResourceHandler
Called on the CEF IO thread before a resource is loaded. To specify a handler for the resource return a IResourceHandler object.
Protected methodGetResourceResponseFilter
Called on the CEF IO thread to optionally filter resource response content.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnBeforeResourceLoad
Called on the CEF IO thread before a resource request is loaded. To redirect or change the resource load optionally modify request. Modification of the request URL will be treated as a redirect.
Protected methodOnProtocolExecution
Called on the CEF UI thread to handle requests for URLs with an unknown protocol component. SECURITY WARNING: YOU SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION.
Protected methodOnResourceLoadComplete
Called on the CEF IO thread when a resource load has completed. This method will be called for all requests, including requests that are aborted due to CEF shutdown or destruction of the associated browser. In cases where the associated browser is destroyed this callback may arrive after the OnBeforeClose(IWebBrowser, IBrowser) callback for that browser. The IsValid method can be used to test for this situation, and care should be taken not to call browser or frame methods that modify state (like LoadURL, SendProcessMessage, etc.) if the frame is invalid.
Protected methodOnResourceRedirect
Called on the CEF IO thread when a resource load is redirected. The request parameter will contain the old URL and other request-related information. The response parameter will contain the response that resulted in the redirect. The newUrl parameter will contain the new URL and can be changed if desired.
Protected methodOnResourceResponse
Called on the CEF IO thread when a resource response is received. To allow the resource load to proceed without modification return false. To redirect or retry the resource load optionally modify request and return true. Modification of the request URL will be treated as a redirect. Requests handled using the default network loader cannot be redirected in this callback. WARNING: Redirecting using this method is deprecated. Use OnBeforeResourceLoad or GetResourceHandler to perform redirects.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also