namespace Cef3 { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Cef3.Interop; /// /// Callback interface for CefBrowserHost::GetNavigationEntries. The methods of /// this class will be called on the browser process UI thread. /// public abstract unsafe partial class CefNavigationEntryVisitor { private int visit(cef_navigation_entry_visitor_t* self, cef_navigation_entry_t* entry, int current, int index, int total) { CheckSelf(self); var m_entry = CefNavigationEntry.FromNative(entry); var m_result = Visit(m_entry, current != 0, index, total); m_entry.Dispose(); return m_result ? 1 : 0; } /// /// Method that will be executed. Do not keep a reference to |entry| outside of /// this callback. Return true to continue visiting entries or false to stop. /// |current| is true if this entry is the currently loaded navigation entry. /// |index| is the 0-based index of this entry and |total| is the total number /// of entries. /// protected abstract bool Visit(CefNavigationEntry entry, bool current, int index, int total); } }