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

Unified Diff: third_party/WebKit/Source/core/frame/FrameSerializer.h

Issue 2560693002: Disable form elements in MHTML (Closed)
Patch Set: Address feedback Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameSerializer.h
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.h b/third_party/WebKit/Source/core/frame/FrameSerializer.h
index 0439d2e9beae7765fcf3e63b4fb578315f11e32c..199b8c0297a4d2914e6b28ac5b89335b2d6edf2a 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.h
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.h
@@ -89,6 +89,12 @@ class CORE_EXPORT FrameSerializer final {
// Tells whether to skip serialization of a subresource.
virtual bool shouldSkipResource(const Resource&) { return false; }
+
+ // Returns custom attributes that need to add in order to serialize the
+ // element.
+ virtual Vector<Attribute> getCustomAttributes(const Element&) {
+ return Vector<Attribute>();
+ }
};
// Constructs a serializer that will write output to the given vector of
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698