// Copyright © 2015 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 "JavascriptAsyncMethodHandler.h" #include "JavascriptCallbackRegistry.h" namespace CefSharp { namespace BrowserSubprocess { namespace Async { private ref class JavascriptAsyncMethodWrapper { private: MCefRefPtr _javascriptMethodHandler; public: JavascriptAsyncMethodWrapper(int64 ownerId, JavascriptCallbackRegistry^ callbackRegistry, Func^ methodCallbackSave) : _javascriptMethodHandler(new JavascriptAsyncMethodHandler(ownerId, callbackRegistry, methodCallbackSave)) { } void Bind(JavascriptMethod^ method, const CefRefPtr& value); }; } } }