forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb_request_client.cpp
More file actions
38 lines (32 loc) · 1.43 KB
/
web_request_client.cpp
File metadata and controls
38 lines (32 loc) · 1.43 KB
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
31
32
33
34
35
36
37
38
// Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
// License: New BSD License.
// Website: http://code.google.com/p/cefpython/
#include "web_request_client.h"
void WebRequestClient::OnRequestComplete(CefRefPtr<CefURLRequest> request) {
WebRequestClient_OnRequestComplete(webRequestId_, request);
}
void WebRequestClient::OnUploadProgress(CefRefPtr<CefURLRequest> request,
int64 current,
int64 total) {
WebRequestClient_OnUploadProgress(webRequestId_, request, current, total);
}
void WebRequestClient::OnDownloadProgress(CefRefPtr<CefURLRequest> request,
int64 current,
int64 total) {
WebRequestClient_OnDownloadProgress(webRequestId_, request, current,
total);
}
void WebRequestClient::OnDownloadData(CefRefPtr<CefURLRequest> request,
const void* data,
size_t data_length) {
WebRequestClient_OnDownloadData(webRequestId_, request, data, data_length);
}
bool WebRequestClient::GetAuthCredentials(bool isProxy,
const CefString& host,
int port,
const CefString& realm,
const CefString& scheme,
CefRefPtr<CefAuthCallback> callback) {
// Not yet implemented.
return false;
}