mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 09:37:03 +00:00
2a9b50640f
https://bitbucket.org/chromiumembedded/cef/commits/5042d7140822cd13b80990f61ce2d3865864a3d8
33 lines
1020 B
C++
33 lines
1020 B
C++
// 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<JavascriptAsyncMethodHandler> _javascriptMethodHandler;
|
|
|
|
public:
|
|
JavascriptAsyncMethodWrapper(int64_t ownerId, JavascriptCallbackRegistry^ callbackRegistry, Func<JavascriptAsyncMethodCallback^, int64_t>^ methodCallbackSave)
|
|
: _javascriptMethodHandler(new JavascriptAsyncMethodHandler(ownerId, callbackRegistry, methodCallbackSave))
|
|
{
|
|
|
|
}
|
|
|
|
void Bind(JavascriptMethod^ method, const CefRefPtr<CefV8Value>& value);
|
|
};
|
|
}
|
|
}
|
|
}
|