mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
24 lines
1.1 KiB
C#
24 lines
1.1 KiB
C#
// 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
|
|
{
|
|
/// <summary>
|
|
/// Processes a custom scheme-based request asynchronously. The implementing method should call the callback whenever the
|
|
/// request is completed.
|
|
/// </summary>
|
|
/// <param name="request">The request object.</param>
|
|
/// <param name="response">The SchemeHandlerResponse object in which the handler is supposed to place the response
|
|
/// information.</param>
|
|
/// <param name="requestCompletedCallback">A callback which the handler is supposed to call once the processing is
|
|
/// complete. The callback may be called on any thread.</param>
|
|
/// <returns>true if the request is handled, false otherwise.</returns>
|
|
bool ProcessRequestAsync(IRequest request, ISchemeHandlerResponse response, OnRequestCompletedHandler requestCompletedCallback);
|
|
}
|
|
}
|