// Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public interface IResourceHandlerFactory
{
///
/// Are there any 's registered?
///
bool HasHandlers { get; }
///
/// Called before a resource is loaded. To specify a handler for the resource return a object
///
/// The browser UI control
/// the browser object
/// the frame object
/// the request object - cannot be modified in this callback
/// To allow the resource to load normally return NULL otherwise return an instance of ResourceHandler with a valid stream
IResourceHandler GetResourceHandler(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request);
}
}