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

Unified Diff: content/public/common/mhtml_generation_params.h

Issue 2683493002: Get signals working in the EXTRA_DATA section of MHTML (Closed)
Patch Set: FIx tests, add unit test Created 3 years, 9 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: content/public/common/mhtml_generation_params.h
diff --git a/content/public/common/mhtml_generation_params.h b/content/public/common/mhtml_generation_params.h
index f4e5bd8f727b277928f9be9a69ca53bc0cf28826..b555577ebd6ad40d371d73fe90e04d6a3b8abe3e 100644
--- a/content/public/common/mhtml_generation_params.h
+++ b/content/public/common/mhtml_generation_params.h
@@ -5,6 +5,9 @@
#ifndef CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_
#define CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_
+#include <string>
+#include <vector>
romax 2017/03/14 19:08:06 seems like vector is not being used
Pete Williamson 2017/03/15 22:38:22 Ended up reverting this file
+
#include "base/files/file_path.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
@@ -13,7 +16,11 @@ namespace content {
struct CONTENT_EXPORT MHTMLGenerationParams {
MHTMLGenerationParams(const base::FilePath& file_path);
- ~MHTMLGenerationParams() = default;
+
+ ~MHTMLGenerationParams();
+
+ // We need a copy constructor since we have a complex subtype.
+ MHTMLGenerationParams(const MHTMLGenerationParams& other);
// The file that will contain the generated MHTML.
base::FilePath file_path;
@@ -31,6 +38,11 @@ struct CONTENT_EXPORT MHTMLGenerationParams {
// Removes popups that could obstruct the user's view of normal content.
bool remove_popup_overlay = false;
+
+ // Extra data to be included when generating the MHTML - for example,
+ // logging the signals that were received before capturing this MHTML
+ // for background offlining.
+ std::string extra_data;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698