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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2010 Google Inc. All Rights Reserved. 3 * Copyright (C) 2010 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return wrapUnique(new CachedDocumentParameters(document)); 63 return wrapUnique(new CachedDocumentParameters(document));
64 } 64 }
65 65
66 bool doHtmlPreloadScanning; 66 bool doHtmlPreloadScanning;
67 bool doDocumentWritePreloadScanning; 67 bool doDocumentWritePreloadScanning;
68 Length defaultViewportMinWidth; 68 Length defaultViewportMinWidth;
69 bool viewportMetaZeroValuesQuirk; 69 bool viewportMetaZeroValuesQuirk;
70 bool viewportMetaEnabled; 70 bool viewportMetaEnabled;
71 ReferrerPolicy referrerPolicy; 71 ReferrerPolicy referrerPolicy;
72 72
73 protected:
74 // For testing.
75 CachedDocumentParameters() {}
kouhei (in TOK) 2016/08/22 05:48:28 public: static std::unique_ptr<CachedDocumentParam
Charlie Harrison 2016/08/23 01:32:28 I'm inclined to keep a protected constructor here
kouhei (in TOK) 2016/08/23 02:29:41 I'm fine either way. Not a blocker. However we see
76
73 private: 77 private:
74 explicit CachedDocumentParameters(Document*); 78 explicit CachedDocumentParameters(Document*);
75 }; 79 };
76 80
77 class TokenPreloadScanner { 81 class TokenPreloadScanner {
78 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca nner); 82 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca nner);
79 public: 83 public:
80 TokenPreloadScanner(const KURL& documentURL, std::unique_ptr<CachedDocumentP arameters>, const MediaValuesCached::MediaValuesCachedData&); 84 TokenPreloadScanner(const KURL& documentURL, std::unique_ptr<CachedDocumentP arameters>, const MediaValuesCached::MediaValuesCachedData&);
81 ~TokenPreloadScanner(); 85 ~TokenPreloadScanner();
82 86
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 173
170 TokenPreloadScanner m_scanner; 174 TokenPreloadScanner m_scanner;
171 SegmentedString m_source; 175 SegmentedString m_source;
172 HTMLToken m_token; 176 HTMLToken m_token;
173 std::unique_ptr<HTMLTokenizer> m_tokenizer; 177 std::unique_ptr<HTMLTokenizer> m_tokenizer;
174 }; 178 };
175 179
176 } // namespace blink 180 } // namespace blink
177 181
178 #endif 182 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698