4851aa889ed7dfa43239e70cbb28ebd05a286a1e
[platform/framework/web/chromium-efl.git] / tizen_src / impl / browser / download_manager_delegate_efl.h
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.
4
5 #ifndef DOWNLOAD_MANAGER_DELEGATE_EFL_H
6 #define DOWNLOAD_MANAGER_DELEGATE_EFL_H
7
8 #include "content/public/browser/download_manager_delegate.h"
9
10 // EFL WebView does not use Chromium downloads, so implement methods here to
11 // unconditionally cancel the download.
12 class DownloadManagerDelegateEfl : public content::DownloadManagerDelegate {
13 public:
14     virtual ~DownloadManagerDelegateEfl() { }
15
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;
27 };
28
29 #endif // DOWNLOAD_MANAGER_DELEGATE_EFL_H