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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h

Issue 2261873002: Add fuzzer for HTMLPreloadScanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 4 years, 3 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: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
index 626196fbf0cb81958d428a397a99b15858868107..4a7b55a14b2db547f43e9c2b65908ba9a303993f 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
@@ -64,6 +64,11 @@ public:
return wrapUnique(new CachedDocumentParameters(document));
}
+ static std::unique_ptr<CachedDocumentParameters> create()
+ {
+ return wrapUnique(new CachedDocumentParameters);
+ }
+
bool doHtmlPreloadScanning;
bool doDocumentWritePreloadScanning;
Length defaultViewportMinWidth;
@@ -73,6 +78,7 @@ public:
private:
explicit CachedDocumentParameters(Document*);
+ CachedDocumentParameters() = default;
};
class TokenPreloadScanner {
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerFuzzer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698