mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
21 lines
473 B
C++
21 lines
473 B
C++
#include "stdafx.h"
|
|
#pragma once
|
|
|
|
#include "include/cef_download_handler.h"
|
|
#include "IDownloadHandler.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
class DownloadAdapter : public CefDownloadHandler
|
|
{
|
|
gcroot<IDownloadHandler^> _handler;
|
|
|
|
public:
|
|
DownloadAdapter(IDownloadHandler^ handler) : _handler(handler) { }
|
|
|
|
virtual bool ReceivedData(void* data, int data_size);
|
|
virtual void Complete();
|
|
|
|
IMPLEMENT_REFCOUNTING(DownloadAdapter);
|
|
};
|
|
} |