namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cef3.Interop;
///
/// Interface to implement for visiting web plugin information. The methods of
/// this class will be called on the browser process UI thread.
///
public abstract unsafe partial class CefWebPluginInfoVisitor
{
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;
}
///
/// 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.
///
protected abstract bool Visit(CefWebPluginInfo info, int count, int total);
}
}