forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefResourceReadCallback.java
More file actions
25 lines (22 loc) · 919 Bytes
/
CefResourceReadCallback.java
File metadata and controls
25 lines (22 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.callback;
/**
* Callback interface used for asynchronous resource reading.
*/
public interface CefResourceReadCallback {
/**
* Callback for asynchronous continuation of Read(). If |bytes_read| == 0
* the response will be considered complete. If |bytes_read| > 0 then Read()
* will be called again until the request is complete (based on either the
* result or the expected content length). If |bytes_read| < 0 then the
* request will fail and the |bytes_read| value will be treated as the error
* code.
*/
void Continue(int bytes_read);
/**
* Returns the byte buffer to write data into before calling #Continue(int).
*/
public byte[] getBuffer();
}