// 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 _handler; public: DownloadAdapter(IDownloadHandler^ handler) : _handler(handler) { } ~DownloadAdapter(); virtual void OnBeforeDownload(CefRefPtr browser, CefRefPtr download_item, const CefString& suggested_name, CefRefPtr callback) OVERRIDE; virtual void OnDownloadUpdated(CefRefPtr browser, CefRefPtr download_item, CefRefPtr callback) OVERRIDE; IMPLEMENT_REFCOUNTING(DownloadAdapter); }; } }