Ejemplo n.º 1
0
 private CefSslStatus(cef_sslstatus_t *ptr)
 {
     if (ptr == null)
     {
         throw new ArgumentNullException("ptr");
     }
     _self = ptr;
 }
Ejemplo n.º 2
0
 internal static CefSslStatus FromNativeOrNull(cef_sslstatus_t *ptr)
 {
     if (ptr == null)
     {
         return(null);
     }
     return(new CefSslStatus(ptr));
 }
Ejemplo n.º 3
0
 public void Dispose()
 {
     if (_self != null)
     {
         Release();
         _self = null;
     }
     GC.SuppressFinalize(this);
 }
        public static int release(cef_sslstatus_t *self)
        {
            release_delegate d;
            var p = self->_base._release;

            if (p == _p1)
            {
                d = _d1;
            }
            else
            {
                d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
                if (_p1 == IntPtr.Zero)
                {
                    _d1 = d; _p1 = p;
                }
            }
            return(d(self));
        }
        public static void add_ref(cef_sslstatus_t *self)
        {
            add_ref_delegate d;
            var p = self->_base._add_ref;

            if (p == _p0)
            {
                d = _d0;
            }
            else
            {
                d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
                if (_p0 == IntPtr.Zero)
                {
                    _d0 = d; _p0 = p;
                }
            }
            d(self);
        }
        public static cef_x509certificate_t *get_x509certificate(cef_sslstatus_t *self)
        {
            get_x509certificate_delegate d;
            var p = self->_get_x509certificate;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (get_x509certificate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_x509certificate_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
        public static CefSslContentStatus get_content_status(cef_sslstatus_t *self)
        {
            get_content_status_delegate d;
            var p = self->_get_content_status;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (get_content_status_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_content_status_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
        public static CefSslVersion get_sslversion(cef_sslstatus_t *self)
        {
            get_sslversion_delegate d;
            var p = self->_get_sslversion;

            if (p == _p5)
            {
                d = _d5;
            }
            else
            {
                d = (get_sslversion_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_sslversion_delegate));
                if (_p5 == IntPtr.Zero)
                {
                    _d5 = d; _p5 = p;
                }
            }
            return(d(self));
        }
        public static int is_secure_connection(cef_sslstatus_t *self)
        {
            is_secure_connection_delegate d;
            var p = self->_is_secure_connection;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (is_secure_connection_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_secure_connection_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            return(d(self));
        }
        public static int has_one_ref(cef_sslstatus_t *self)
        {
            has_one_ref_delegate d;
            var p = self->_base._has_one_ref;

            if (p == _p2)
            {
                d = _d2;
            }
            else
            {
                d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
                if (_p2 == IntPtr.Zero)
                {
                    _d2 = d; _p2 = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 11
0
 internal static CefSslStatus FromNative(cef_sslstatus_t *ptr)
 {
     return(new CefSslStatus(ptr));
 }
Ejemplo n.º 12
0
 public CefSSLStatus(cef_sslstatus_t *instance)
     : base((cef_base_ref_counted_t *)instance)
 {
 }