예제 #1
0
 /// <summary>
 /// Creates a new context object with the specified handler.
 /// </summary>
 public static CefRequestContext CreateContext(CefRequestContextHandler handler)
 {
     return CefRequestContext.FromNative(
         cef_request_context_t.create_context(
             handler != null ? handler.ToNative() : null
             )
         );
 }
예제 #2
0
 /// <summary>
 /// Creates a new context object with the specified handler.
 /// </summary>
 public static CefRequestContext CreateContext(CefRequestContextHandler handler)
 {
     return CefRequestContext.FromNative(
         cef_request_context_t.create_context(
             handler != null ? handler.ToNative() : null
             )
         );
 }
 /// <summary>
 /// Creates a new context object with the specified handler.
 /// </summary>
 public static CefRequestContext CreateContext(CefRequestContextSettings settings, CefRequestContextHandler handler)
 {
     return(CefRequestContext.FromNative(
                cef_request_context_t.create_context(
                    settings != null ? settings.ToNative() : null,
                    handler != null ? handler.ToNative() : null
                    )
                ));
 }
예제 #4
0
        /// <summary>
        /// Creates a new context object with the specified |settings| and optional
        /// |handler|.
        /// </summary>
        public static CefRequestContext CreateContext(CefRequestContextSettings settings, CefRequestContextHandler handler)
        {
            var n_settings = settings.ToNative();

            var result = CefRequestContext.FromNative(
                cef_request_context_t.create_context(
                    n_settings,
                    handler != null ? handler.ToNative() : null
                    )
                );

            CefRequestContextSettings.Free(n_settings);

            return(result);
        }