// Copyright © 2023 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.Collections.Generic;
namespace CefSharp.Internals
{
///
/// Render Process JavaScript Binding (JSB) object cache
///
public interface IJavaScriptObjectCache
{
///
/// Remove the Browser specific Cache
///
/// browser Id
void ClearCache(int browserId);
///
/// Gets the browser specific cache (dictionary) based on it's Id
///
/// browser Id
/// Dictionary of cache 's.
///
IDictionary GetCache(int browserId);
///
/// Gets a collection of s
/// for the given
///
/// browser Id
/// Collection of current bound objects for the browser
///
ICollection GetCacheValues(int browserId);
///
/// Insert or Update the within the Cache
///
/// browser id
/// JavaScript object
///
void InsertOrUpdate(int browserId, IReadOnlyCollection javascriptObjects);
}
}