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:
@ -53,6 +53,8 @@ class CefPostDataElement;
|
||||
class CefRequest : public virtual CefBase {
|
||||
public:
|
||||
typedef std::multimap<CefString, CefString> HeaderMap;
|
||||
typedef cef_resource_type_t ResourceType;
|
||||
typedef cef_transition_type_t TransitionType;
|
||||
|
||||
///
|
||||
// Create a new CefRequest object.
|
||||
@ -151,6 +153,21 @@ class CefRequest : public virtual CefBase {
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void SetFirstPartyForCookies(const CefString& url) =0;
|
||||
|
||||
///
|
||||
// Get the resource type for this request. Accurate resource type information
|
||||
// may only be available in the browser process.
|
||||
///
|
||||
/*--cef(default_retval=RT_SUB_RESOURCE)--*/
|
||||
virtual ResourceType GetResourceType() =0;
|
||||
|
||||
///
|
||||
// Get the transition type for this request. Only available in the browser
|
||||
// process and only applies to requests that represent a main frame or
|
||||
// sub-frame navigation.
|
||||
///
|
||||
/*--cef(default_retval=TT_EXPLICIT)--*/
|
||||
virtual TransitionType GetTransitionType() =0;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user