// Copyright © 2010-2014 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.
namespace CefSharp
{
public interface IDownloadHandler
{
///
/// Called before a download begins.
///
/// Represents the file being downloaded.
/// Path where the file will be saved if is False.
/// Display a dialog allowing the user to specify a custom path and filename.
/// Return True to continue the download otherwise return False to cancel the download
bool OnBeforeDownload(DownloadItem downloadItem, out string downloadPath, out bool showDialog);
///
/// Called when a download's status or progress information has been updated. This may be called multiple times before and after .
///
/// Represents the file being downloaded.
/// Return True to cancel, otherwise False to allow the download to continue.
bool OnDownloadUpdated(DownloadItem downloadItem);
}
}