// 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 delegate void OnRequestCompletedHandler();
public interface ISchemeHandler
{
///
/// Processes a custom scheme-based request asynchronously. The implementing method should call the callback whenever the
/// request is completed.
///
/// The request object.
/// The SchemeHandlerResponse object in which the handler is supposed to place the response
/// information.
/// A callback which the handler is supposed to call once the processing is
/// complete. The callback may be called on any thread.
/// true if the request is handled, false otherwise.
bool ProcessRequestAsync(IRequest request, ISchemeHandlerResponse response, OnRequestCompletedHandler requestCompletedCallback);
}
}