(default)
Class CefSchemeHandler
CefBase
|
+--CefSchemeHandler
in cef_scheme.h
- class CefSchemeHandler
- extends CefBase
Class used to implement a custom scheme handler interface. The methods of
this class will always be called on the IO thread.
Cancel
public virtual void Cancel()= 0;
- Request processing has been canceled.
GetResponseHeaders
public virtual void GetResponseHeaders( CefRefPtr< CefResponse > response, int64& response_length, CefString& redirectUrl )= 0;
- Retrieve response header information. If the response length is not known
set |response_length| to -1 and ReadResponse() will be called until it
returns false. If the response length is known set |response_length|
to a positive value and ReadResponse() will be called until it returns
false or the specified number of bytes have been read. Use the |response|
object to set the mime type, http status code and other optional header
values. To redirect the request to a new URL set |redirectUrl| to the new
URL.
ProcessRequest
public virtual bool ProcessRequest( CefRefPtr< CefRequest > request, CefRefPtr< CefSchemeHandlerCallback > callback )= 0;
- Begin processing the request. To handle the request return true and call
HeadersAvailable() once the response header information is available
(HeadersAvailable() can also be called from inside this method if header
information is available immediately). To cancel the request return false.
ReadResponse
public virtual bool ReadResponse( void* data_out, int bytes_to_read, int& bytes_read, CefRefPtr< CefSchemeHandlerCallback > callback )= 0;
- Read response data. If data is available immediately copy up to
|bytes_to_read| bytes into |data_out|, set |bytes_read| to the number of
bytes copied, and return true. To read the data at a later time set
|bytes_read| to 0, return true and call BytesAvailable() when the data is
available. To indicate response completion return false.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt