add IDownload

This commit is contained in:
anthony taranto
2013-03-06 16:28:20 -08:00
parent a3d8b8627a
commit 572f39752e
4 changed files with 22 additions and 1 deletions
+4
View File
@@ -310,6 +310,10 @@
RelativePath=".\ICookieVisitor.h"
>
</File>
<File
RelativePath=".\IDownload.h"
>
</File>
<File
RelativePath=".\IKeyboardHandler.h"
>
+1 -1
View File
@@ -224,7 +224,7 @@ namespace CefSharp
return false;
}
handler = new DownloadAdapter();
handler = new DownloadAdapter(nullptr);
return true;
}
+5
View File
@@ -2,12 +2,17 @@
#pragma once
#include "include/cef_download_handler.h"
#include "IDownload.h"
namespace CefSharp
{
class DownloadAdapter : public CefDownloadHandler
{
gcroot<IDownload^> _download;
public:
DownloadAdapter(IDownload^ download) : _download(download) { }
virtual bool ReceivedData(void* data, int data_size);
virtual void Complete();
+12
View File
@@ -0,0 +1,12 @@
#include "stdafx.h"
#pragma once
namespace CefSharp
{
public interface class IDownload
{
public:
bool ReceivedData(array<Byte>^ data);
void Complete();
};
}