mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
dc986b3b06
Resolves #982
42 lines
925 B
C++
42 lines
925 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 "MCefRefPtr.h"
|
|
|
|
using namespace CefSharp;
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Internals
|
|
{
|
|
public ref class RequestCallback : public IRequestCallback
|
|
{
|
|
MCefRefPtr<CefRequestCallback> _callback;
|
|
internal:
|
|
RequestCallback(CefRefPtr<CefRequestCallback> callback) : _callback(callback)
|
|
{
|
|
}
|
|
|
|
~RequestCallback()
|
|
{
|
|
_callback = NULL;
|
|
}
|
|
|
|
public:
|
|
virtual void Continue(bool allow)
|
|
{
|
|
_callback->Continue(allow);
|
|
}
|
|
|
|
virtual void Cancel()
|
|
{
|
|
_callback->Cancel();
|
|
}
|
|
};
|
|
}
|
|
}
|