[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/2php/cefpython/cefpython55/src/client_handler/download_handler.h [Back]  [Original]

// 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 browser,
                          CefRefPtr download_item,
                          const CefString& suggested_name,
                          CefRefPtr callback
                          ) override;

    void OnDownloadUpdated(CefRefPtr browser,
                           CefRefPtr download_item,
                           CefRefPtr callback
                           ) override;

private:
    IMPLEMENT_REFCOUNTING(DownloadHandler);
};

Web Proxy Viewer  |  New URL  |  Original Page