// Copyright © 2010-2014 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
{
void RegisterHandler(string url, ResourceHandler handler);
void UnregisterHandler(string url);
///
/// 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 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
ResourceHandler GetResourceHandler(IWebBrowser browser, IRequest request);
}
}