Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2530)

Unified Diff: chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc

Issue 2683493002: Get signals working in the EXTRA_DATA section of MHTML (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc b/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
index 27948ae0aa02652fe93f6c0ba118d6737a6b37ca..e3c87d948d16c2843bf769fcc5ef0cb10b28021a 100644
--- a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
+++ b/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
@@ -53,10 +53,12 @@ OfflinePageMHTMLArchiver::~OfflinePageMHTMLArchiver() {
void OfflinePageMHTMLArchiver::CreateArchive(
const base::FilePath& archives_dir,
const CreateArchiveParams& create_archive_params,
+ const std::vector<std::string>& signal_data,
const CreateArchiveCallback& callback) {
DCHECK(callback_.is_null());
DCHECK(!callback.is_null());
callback_ = callback;
+ signal_data_ = signal_data;
fgorski 2017/02/07 22:06:07 If I understand correctly this will be a copy. Can
Dmitry Titov 2017/02/14 20:39:58 I think this is also equivalent to passing a std::
if (HasConnectionSecurityError()) {
ReportFailure(ArchiverResult::ERROR_SECURITY_CERTIFICATE);
@@ -97,6 +99,7 @@ void OfflinePageMHTMLArchiver::GenerateMHTML(
content::MHTMLGenerationParams params(file_path);
params.use_binary_encoding = true;
params.remove_popup_overlay = create_archive_params.remove_popup_overlay;
+ params.extra_data = signal_data_;
fgorski 2017/02/07 22:06:07 Here as well.
web_contents_->GenerateMHTML(
params,

Powered by Google App Engine
This is Rietveld 408576698