// Copyright © 2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; namespace CefSharp { /// /// Interface to implement for visiting cookie values. /// The methods of this class will always be called on the IO thread. /// If there are no cookies then Visit will never be called, you must implement /// Dispose to handle this scenario. /// public interface ICookieVisitor : IDisposable { /// /// Method that will be called once for each cookie. This method may never be called if no cookies are found. /// /// cookie /// is the 0-based index for the current cookie. /// is the total number of cookies. /// Set to true to delete the cookie currently being visited. /// Return false to stop visiting cookies otherwise true bool Visit(Cookie cookie, int count, int total, ref bool deleteCookie); } }