Use CompletionOnceCallback in URLRequestSimpleJob.

1155089
This commit is contained in:
deepak1556 2018-10-25 20:50:55 +05:30
parent 8f1fa4177e
commit c1f32afeeb
4 changed files with 7 additions and 8 deletions

View file

@ -102,11 +102,10 @@ void URLRequestStringJob::GetResponseInfo(net::HttpResponseInfo* info) {
info->headers = headers;
}
int URLRequestStringJob::GetData(
std::string* mime_type,
std::string* charset,
std::string* data,
const net::CompletionCallback& callback) const {
int URLRequestStringJob::GetData(std::string* mime_type,
std::string* charset,
std::string* data,
net::CompletionOnceCallback callback) const {
*mime_type = mime_type_;
*charset = charset_;
*data = data_;