private int visit(cef_web_plugin_info_visitor_t *self, cef_web_plugin_info_t *info, int count, int total)
        {
            CheckSelf(self);

            var m_info = CefWebPluginInfo.FromNative(info);

            var result = Visit(m_info, count, total);

            return(result ? 1 : 0);
        }
        private int on_before_plugin_load(cef_request_handler_t *self, cef_browser_t *browser, cef_string_t *url, cef_string_t *policy_url, cef_web_plugin_info_t *info)
        {
            CheckSelf(self);

            var m_browser    = CefBrowser.FromNative(browser);
            var m_url        = cef_string_t.ToString(url);
            var m_policy_url = cef_string_t.ToString(policy_url);
            var m_info       = CefWebPluginInfo.FromNative(info);

            var result = OnBeforePluginLoad(m_browser, m_url, m_policy_url, m_info);

            return(result ? 1 : 0);
        }
 /// <summary>
 /// Called on the browser process IO thread before a plugin is loaded. Return
 /// true to block loading of the plugin.
 /// </summary>
 protected virtual bool OnBeforePluginLoad(CefBrowser browser, string url, string policyUrl, CefWebPluginInfo info)
 {
     return(false);
 }
 /// <summary>
 /// Method that will be called once for each plugin. |count| is the 0-based
 /// index for the current plugin. |total| is the total number of plugins.
 /// Return false to stop visiting plugins. This method may never be called if
 /// no plugins are found.
 /// </summary>
 protected abstract bool Visit(CefWebPluginInfo info, int count, int total);
 /// <summary>
 /// Method that will be called once for each plugin. |count| is the 0-based
 /// index for the current plugin. |total| is the total number of plugins.
 /// Return false to stop visiting plugins. This method may never be called if
 /// no plugins are found.
 /// </summary>
 protected abstract bool Visit(CefWebPluginInfo info, int count, int total);
 /// <summary>
 /// Called on the browser process IO thread before a plugin is loaded. Return
 /// true to block loading of the plugin.
 /// </summary>
 protected virtual bool OnBeforePluginLoad(CefBrowser browser, string url, string policyUrl, CefWebPluginInfo info)
 {
     return false;
 }