Add error code to CefResponse (issue #1845)

This commit is contained in:
Marshall Greenblatt
2016-05-11 14:20:07 -04:00
parent 543178ce67
commit 958618359c
11 changed files with 156 additions and 3 deletions

View File

@@ -62,6 +62,19 @@ class CefResponse : public virtual CefBase {
/*--cef()--*/
virtual bool IsReadOnly() =0;
///
// Get the response error code. Returns ERR_NONE if there was no error.
///
/*--cef(default_retval=ERR_NONE)--*/
virtual cef_errorcode_t GetError() = 0;
///
// Set the response error code. This can be used by custom scheme handlers
// to return errors during initial request processing.
///
/*--cef()--*/
virtual void SetError(cef_errorcode_t error) = 0;
///
// Get the response status code.
///