mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Expose resource type and transition type via CefRequest (issue #1071).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1433 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -278,6 +278,37 @@ void CEF_CALLBACK request_set_first_party_for_cookies(
|
||||
CefString(url));
|
||||
}
|
||||
|
||||
enum cef_resource_type_t CEF_CALLBACK request_get_resource_type(
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return RT_SUB_RESOURCE;
|
||||
|
||||
// Execute
|
||||
cef_resource_type_t _retval = CefRequestCppToC::Get(self)->GetResourceType();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
enum cef_transition_type_t CEF_CALLBACK request_get_transition_type(
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return TT_EXPLICIT;
|
||||
|
||||
// Execute
|
||||
cef_transition_type_t _retval = CefRequestCppToC::Get(
|
||||
self)->GetTransitionType();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
@ -299,6 +330,8 @@ CefRequestCppToC::CefRequestCppToC(CefRequest* cls)
|
||||
request_get_first_party_for_cookies;
|
||||
struct_.struct_.set_first_party_for_cookies =
|
||||
request_set_first_party_for_cookies;
|
||||
struct_.struct_.get_resource_type = request_get_resource_type;
|
||||
struct_.struct_.get_transition_type = request_get_transition_type;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
Reference in New Issue
Block a user