1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DOWNLOAD_MANAGER_DELEGATE_EFL_H
6 #define DOWNLOAD_MANAGER_DELEGATE_EFL_H
8 #include "content/public/browser/download_manager_delegate.h"
10 // EFL WebView does not use Chromium downloads, so implement methods here to
11 // unconditionally cancel the download.
12 class DownloadManagerDelegateEfl : public content::DownloadManagerDelegate {
14 virtual ~DownloadManagerDelegateEfl() { }
16 // content::DownloadManagerDelegate implementation.
17 virtual bool DetermineDownloadTarget(
18 content::DownloadItem*,
19 const content::DownloadTargetCallback&) OVERRIDE;
20 virtual bool ShouldCompleteDownload(
21 content::DownloadItem*,
22 const base::Closure&) OVERRIDE;
23 virtual bool ShouldOpenDownload(
24 content::DownloadItem*,
25 const content::DownloadOpenDelayedCallback&) OVERRIDE;
26 virtual void GetNextId(const content::DownloadIdCallback&) OVERRIDE;
29 #endif // DOWNLOAD_MANAGER_DELEGATE_EFL_H