~abreu-alexandre/oxide/add-ua-to-downloadrequested

« back to all changes in this revision

Viewing changes to qt/core/browser/oxide_qt_web_view.cc

Expose user agent as part of downloadRequest

Show diffs side-by-side

added added

removed removed

Lines of Context:
745
745
                                const bool should_prompt,
746
746
                                const base::string16& suggested_filename,
747
747
                                const std::string& cookies,
748
 
                                const std::string& referrer) {
 
748
                                const std::string& referrer,
 
749
                                const std::string& user_agent) {
749
750
  OxideQDownloadRequest download_request(
750
751
      QUrl(QString::fromStdString(url.spec())),
751
752
      QString::fromStdString(mime_type),
752
753
      should_prompt,
753
754
      QString::fromStdString(base::UTF16ToUTF8(suggested_filename)),
754
755
      QString::fromStdString(cookies),
755
 
      QString::fromStdString(referrer));
 
756
      QString::fromStdString(referrer),
 
757
      QString::fromStdString(user_agent));
756
758
 
757
759
  client_->DownloadRequested(&download_request);
758
760
}