2017-01-11 00:00:30 +01:00
|
|
|
// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
|
2012-04-24 20:01:48 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/scheme_registrar_cpptoc.h"
|
|
|
|
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2012-04-24 20:01:48 +02:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
int CEF_CALLBACK scheme_registrar_add_custom_scheme(
|
|
|
|
struct _cef_scheme_registrar_t* self, const cef_string_t* scheme_name,
|
2017-01-23 18:36:54 +01:00
|
|
|
int is_standard, int is_local, int is_display_isolated, int is_secure,
|
|
|
|
int is_cors_enabled) {
|
2012-04-24 20:01:48 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: scheme_name; type: string_byref_const
|
|
|
|
DCHECK(scheme_name);
|
|
|
|
if (!scheme_name)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefSchemeRegistrarCppToC::Get(self)->AddCustomScheme(
|
|
|
|
CefString(scheme_name),
|
|
|
|
is_standard?true:false,
|
|
|
|
is_local?true:false,
|
2017-01-23 18:36:54 +01:00
|
|
|
is_display_isolated?true:false,
|
|
|
|
is_secure?true:false,
|
|
|
|
is_cors_enabled?true:false);
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefSchemeRegistrarCppToC::CefSchemeRegistrarCppToC() {
|
|
|
|
GetStruct()->add_custom_scheme = scheme_registrar_add_custom_scheme;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> CefRefPtr<CefSchemeRegistrar> CefCppToC<CefSchemeRegistrarCppToC,
|
|
|
|
CefSchemeRegistrar, cef_scheme_registrar_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type, cef_scheme_registrar_t* s) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
2012-04-24 20:01:48 +02:00
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2014-07-15 00:18:51 +02:00
|
|
|
template<> base::AtomicRefCount CefCppToC<CefSchemeRegistrarCppToC,
|
|
|
|
CefSchemeRegistrar, cef_scheme_registrar_t>::DebugObjCt = 0;
|
2012-04-24 20:01:48 +02:00
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCppToC<CefSchemeRegistrarCppToC,
|
|
|
|
CefSchemeRegistrar, cef_scheme_registrar_t>::kWrapperType =
|
|
|
|
WT_SCHEME_REGISTRAR;
|