mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
9a7ca5eda0
Should be the final breaking changes before the 43.0.0 release
35 lines
796 B
C++
35 lines
796 B
C++
// Copyright © 2010-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 "Stdafx.h"
|
|
#include "include/cef_cookie.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
private class CefCompletionCallbackAdapter : public CefCompletionCallback
|
|
{
|
|
private:
|
|
gcroot<ICompletionCallback^> _handler;
|
|
|
|
public:
|
|
CefCompletionCallbackAdapter(ICompletionCallback^ handler)
|
|
{
|
|
_handler = handler;
|
|
}
|
|
|
|
~CefCompletionCallbackAdapter()
|
|
{
|
|
_handler = nullptr;
|
|
}
|
|
|
|
void OnComplete() OVERRIDE
|
|
{
|
|
_handler->OnComplete();
|
|
}
|
|
|
|
IMPLEMENT_REFCOUNTING(CefCompletionCallbackAdapter);
|
|
};
|
|
} |