mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefURLRequest::ResponseWasCached method (issue #2283)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=78d98006142b5694aaf16320761f55ad19104c40$
|
||||
// $hash=f4e93b00934fd541c9ab0b0a43da21ece8ccddaf$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/urlrequest_ctocpp.h"
|
||||
@@ -118,6 +118,20 @@ CefRefPtr<CefResponse> CefURLRequestCToCpp::GetResponse() {
|
||||
return CefResponseCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefURLRequestCToCpp::ResponseWasCached() {
|
||||
cef_urlrequest_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, response_was_cached))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->response_was_cached(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
void CefURLRequestCToCpp::Cancel() {
|
||||
cef_urlrequest_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, cancel))
|
||||
|
Reference in New Issue
Block a user