feat: add session.downloadURL() (#19889)

This commit is contained in:
Milan Burda 2019-08-29 05:27:20 +02:00 committed by Shelley Vohr
parent 79e936aea8
commit eed72c35d7
4 changed files with 34 additions and 0 deletions

View file

@ -79,6 +79,7 @@ class Session : public mate::TrackableObject<Session>,
std::string GetUserAgent();
v8::Local<v8::Promise> GetBlobData(v8::Isolate* isolate,
const std::string& uuid);
void DownloadURL(const GURL& url);
void CreateInterruptedDownload(const mate::Dictionary& options);
void SetPreloads(const std::vector<base::FilePath::StringType>& preloads);
std::vector<base::FilePath::StringType> GetPreloads() const;