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
30 lines (24 loc) · 767 Bytes
/
download_handler.h
File metadata and controls
30 lines (24 loc) · 767 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
27
28
29
30
// Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
// License: New BSD License.
// Website: http://code.google.com/p/cefpython/
#pragma once
#if defined(_WIN32)
#include "../windows/stdint.h"
#endif
#include "cefpython_public_api.h"
class DownloadHandler : public CefDownloadHandler
{
public:
int downloadHandlerId_;
public:
DownloadHandler(int downloadHandlerId)
: downloadHandlerId_(downloadHandlerId) {
}
virtual bool ReceivedData(void* data, int data_size) OVERRIDE;
virtual void Complete() OVERRIDE;
protected:
// Include the default reference counting implementation.
IMPLEMENT_REFCOUNTING(DownloadHandler);
// Include the default locking implementation.
IMPLEMENT_LOCKING(DownloadHandler);
};