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

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: rebase Created 4 years, 4 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 329795c691bc849b82ddb93bd3a6d6c097ca809a..628b2a0b83d70aadd9e53621be6f64998ef4172c 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
@@ -63,6 +63,11 @@ public:
return wrapUnique(new CachedDocumentParameters(document));
}
+ static std::unique_ptr<CachedDocumentParameters> create()
+ {
+ return wrapUnique(new CachedDocumentParameters);
+ }
+
bool doHtmlPreloadScanning;
bool doDocumentWritePreloadScanning;
Length defaultViewportMinWidth;
@@ -72,6 +77,7 @@ public:
private:
explicit CachedDocumentParameters(Document*);
+ CachedDocumentParameters() = default;
};
class TokenPreloadScanner {

Powered by Google App Engine
This is Rietveld 408576698