session: provide uploadData with webrequest api when available

This commit is contained in:
Robo 2016-01-26 13:58:21 +05:30
parent b461969114
commit dc0151099c
5 changed files with 88 additions and 29 deletions

View file

@ -75,6 +75,10 @@ void ToDictionary(base::DictionaryValue* details, net::URLRequest* request) {
details->SetString("resourceType",
info ? ResourceTypeToString(info->GetResourceType())
: "other");
scoped_ptr<base::ListValue> list(new base::ListValue);
GetUploadData(list.get(), request);
if (!list->empty())
details->Set("uploadData", list.Pass());
}
void ToDictionary(base::DictionaryValue* details,