// Copyright (c) 2013 CEF Python, see the Authors file.
// All rights reserved. Licensed under BSD 3-clause license.
// Project website: https://github.com/cztomczak/cefpython
#include "web_request_client.h"
void WebRequestClient::OnRequestComplete(CefRefPtr request) {
WebRequestClient_OnRequestComplete(webRequestId_, request);
}
void WebRequestClient::OnUploadProgress(CefRefPtr request,
int64 current,
int64 total) {
WebRequestClient_OnUploadProgress(webRequestId_, request, current, total);
}
void WebRequestClient::OnDownloadProgress(CefRefPtr request,
int64 current,
int64 total) {
WebRequestClient_OnDownloadProgress(webRequestId_, request, current,
total);
}
void WebRequestClient::OnDownloadData(CefRefPtr 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 callback) {
// Not yet implemented.
return false;
}