// Copyright © 2010-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. #pragma once #include "JavascriptCallbackWrapper.h" namespace CefSharp { namespace Internals { ref class JavascriptCallbackRegistry { private: int browserId; Int64 lastId; Dictionary^ callbacks = gcnew Dictionary(); public: JavascriptCallbackRegistry(int browserId) : browserId(browserId){} JavascriptCallbackDto^ CreateWrapper(CefRefPtr context, CefRefPtr value); JavascriptResponse^ Execute(Int64 id, array^ params); void RemoveWrapper(Int64 id); ~JavascriptCallbackRegistry(); }; } }