// Copyright © 2010-2013 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "Stdafx.h"
#include "Request.h"
namespace CefSharp
{
ref class SchemeHandlerResponse;
public delegate void OnRequestCompletedHandler();
public interface class 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, SchemeHandlerResponse^ response, OnRequestCompletedHandler^ requestCompletedCallback);
};
}