Files
cefsharp/CefSharp.Core/Internals/DownloadAdapter.h
T
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00

34 lines
1.1 KiB
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_download_handler.h"
using namespace System;
using namespace CefSharp;
namespace CefSharp
{
namespace Internals
{
private class DownloadAdapter : public CefDownloadHandler
{
private:
gcroot<IDownloadHandler^> _handler;
public:
DownloadAdapter(IDownloadHandler^ handler) : _handler(handler) { }
~DownloadAdapter();
virtual void OnBeforeDownload(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDownloadItem> download_item,
const CefString& suggested_name, CefRefPtr<CefBeforeDownloadCallback> callback) OVERRIDE;
virtual void OnDownloadUpdated(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDownloadItem> download_item,
CefRefPtr<CefDownloadItemCallback> callback) OVERRIDE;
IMPLEMENT_REFCOUNTING(DownloadAdapter);
};
}
}