feat: add getUploadProgress API to the net API (#13783)

This commit is contained in:
Samuel Attard 2018-07-28 00:15:48 +10:00 committed by Charles Kerr
parent c8dc2d3730
commit 4b3011f3e8
6 changed files with 45 additions and 0 deletions

View file

@ -112,6 +112,7 @@ class URLRequest : public mate::EventEmitter<URLRequest> {
void OnResponseData(scoped_refptr<const net::IOBufferWithSize> data);
void OnResponseCompleted();
void OnError(const std::string& error, bool isRequestError);
mate::Dictionary GetUploadProgress(v8::Isolate* isolate);
protected:
explicit URLRequest(v8::Isolate* isolate, v8::Local<v8::Object> wrapper);