mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-03 23:12:42 +00:00
39a305cac1
- Some classes are now excluded - Many minor fixes should hopefully reduce the number of errors reported by Sandcastle - Some of the xml doc is generated by Atomineer, usually in cases where CEF lacks documentation
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
// Copyright © 2019 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.
|
|
|
|
using System;
|
|
|
|
namespace CefSharp.Callback
|
|
{
|
|
/// <summary>
|
|
/// Callback for asynchronous continuation of <see cref="IResourceHandler.Read"/>.
|
|
/// </summary>
|
|
public interface IResourceReadCallback : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Callback for asynchronous continuation of <see cref="IResourceHandler.Read"/>. If bytesRead == 0
|
|
/// the response will be considered complete.
|
|
/// </summary>
|
|
/// <param name="bytesRead">
|
|
/// If bytesRead == 0 the response will be considered complete.
|
|
/// If bytesRead > 0 then <see cref="IResourceHandler.Read"/> will be called again until the request is complete (based on either the
|
|
/// result or the expected content length). If bytesRead < 0 then the
|
|
/// request will fail and the bytesRead value will be treated as the error
|
|
/// code.
|
|
/// </param>
|
|
void Continue(int bytesRead);
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether the callback has been disposed of.
|
|
/// </summary>
|
|
bool IsDisposed { get; }
|
|
}
|
|
}
|
|
|