// Copyright © 2010-2015 The CefSharp Project. 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 { ref class CefBrowserWrapper; namespace Internals { namespace Async { private ref class JavascriptAsyncMethodWrapper { private: MCefRefPtr _javascriptMethodHandler; JavascriptMethod^ _method; public: JavascriptAsyncMethodWrapper(JavascriptMethod^ method, int64 ownerId, JavascriptCallbackRegistry^ callbackRegistry, CefRefPtr promiseCreator, Func^ methodCallbackSave) :_method(method), _javascriptMethodHandler(new JavascriptAsyncMethodHandler(ownerId, callbackRegistry, promiseCreator, methodCallbackSave)) { } void Bind(const CefRefPtr& value); }; } } }