diff options
Diffstat (limited to 'ppapi/cpp')
-rw-r--r-- | ppapi/cpp/url_request_info.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/cpp/url_request_info.h b/ppapi/cpp/url_request_info.h index 3c7c47d..c1cda4e 100644 --- a/ppapi/cpp/url_request_info.h +++ b/ppapi/cpp/url_request_info.h @@ -51,6 +51,10 @@ class URLRequestInfo : public Resource { bool SetRecordUploadProgress(bool enable) { return SetProperty(PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, enable); } + // To use the default referrer, set url_string to an Undefined Var. + bool SetCustomReferrerURL(const Var& url_string) { + return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url_string); + } }; } // namespace pp |