feat: allow headers to be sent with session.downloadURL() (#38785)

This commit is contained in:
Shelley Vohr 2023-06-21 15:31:28 +02:00 committed by GitHub
parent 74d73166d9
commit e73edb5481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 120 additions and 4 deletions

View file

@ -131,7 +131,7 @@ class Session : public gin::Wrappable<Session>,
bool IsPersistent();
v8::Local<v8::Promise> GetBlobData(v8::Isolate* isolate,
const std::string& uuid);
void DownloadURL(const GURL& url);
void DownloadURL(const GURL& url, gin::Arguments* args);
void CreateInterruptedDownload(const gin_helper::Dictionary& options);
void SetPreloads(const std::vector<base::FilePath>& preloads);
std::vector<base::FilePath> GetPreloads() const;