mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace AddCustomScheme bool arguments with int using bit flags
This commit is contained in:
committed by
Marshall Greenblatt
parent
ba8b4e8b9d
commit
c72d57aa60
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=cd85708cf16cdb2b3359094b1a9645ab6338c059$
|
||||
// $hash=b114df75241a43b240b00eb12509473eaa492dd0$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/scheme_registrar_ctocpp.h"
|
||||
@@ -18,13 +18,7 @@
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool CefSchemeRegistrarCToCpp::AddCustomScheme(const CefString& scheme_name,
|
||||
bool is_standard,
|
||||
bool is_local,
|
||||
bool is_display_isolated,
|
||||
bool is_secure,
|
||||
bool is_cors_enabled,
|
||||
bool is_csp_bypassing,
|
||||
bool is_fetch_enabled) {
|
||||
int options) {
|
||||
cef_scheme_registrar_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, add_custom_scheme))
|
||||
return false;
|
||||
@@ -37,10 +31,8 @@ bool CefSchemeRegistrarCToCpp::AddCustomScheme(const CefString& scheme_name,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->add_custom_scheme(
|
||||
_struct, scheme_name.GetStruct(), is_standard, is_local,
|
||||
is_display_isolated, is_secure, is_cors_enabled, is_csp_bypassing,
|
||||
is_fetch_enabled);
|
||||
int _retval =
|
||||
_struct->add_custom_scheme(_struct, scheme_name.GetStruct(), options);
|
||||
|
||||
// Return type: bool
|
||||
return _retval ? true : false;
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b3cac10a32964e7c29eb39cfb7e2fda4c3f869f9$
|
||||
// $hash=3664a7285a3f5eac9bc7522a2b812bdaf5d42467$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_
|
||||
@@ -35,14 +35,7 @@ class CefSchemeRegistrarCToCpp
|
||||
virtual ~CefSchemeRegistrarCToCpp();
|
||||
|
||||
// CefSchemeRegistrar methods.
|
||||
bool AddCustomScheme(const CefString& scheme_name,
|
||||
bool is_standard,
|
||||
bool is_local,
|
||||
bool is_display_isolated,
|
||||
bool is_secure,
|
||||
bool is_cors_enabled,
|
||||
bool is_csp_bypassing,
|
||||
bool is_fetch_enabled) OVERRIDE;
|
||||
bool AddCustomScheme(const CefString& scheme_name, int options) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_
|
||||
|
Reference in New Issue
Block a user