forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdownload_handler.h
More file actions
26 lines (20 loc) · 862 Bytes
/
download_handler.h
File metadata and controls
26 lines (20 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2016 CEF Python. See the Authors and License files.
#include "common/cefpython_public_api.h"
#include "include/cef_download_handler.h"
class DownloadHandler : public CefDownloadHandler
{
public:
DownloadHandler(){}
virtual ~DownloadHandler(){}
void OnBeforeDownload(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefDownloadItem> download_item,
const CefString& suggested_name,
CefRefPtr<CefBeforeDownloadCallback> callback
) override;
void OnDownloadUpdated(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefDownloadItem> download_item,
CefRefPtr<CefDownloadItemCallback> callback
) override;
private:
IMPLEMENT_REFCOUNTING(DownloadHandler);
};