mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
28 lines
1.2 KiB
C++
28 lines
1.2 KiB
C++
// 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
|
|
{
|
|
/// <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, SchemeHandlerResponse^ response, OnRequestCompletedHandler^ requestCompletedCallback);
|
|
};
|
|
}
|