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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h

Issue 2242223003: Preload tokens even if a <meta> csp tag is found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: less refactoring 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) 2013 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2013 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 ViewportDescriptionWrapper m_viewportDescription; 124 ViewportDescriptionWrapper m_viewportDescription;
125 XSSInfoStream m_pendingXSSInfos; 125 XSSInfoStream m_pendingXSSInfos;
126 126
127 std::unique_ptr<XSSAuditor> m_xssAuditor; 127 std::unique_ptr<XSSAuditor> m_xssAuditor;
128 std::unique_ptr<TokenPreloadScanner> m_preloadScanner; 128 std::unique_ptr<TokenPreloadScanner> m_preloadScanner;
129 std::unique_ptr<TextResourceDecoder> m_decoder; 129 std::unique_ptr<TextResourceDecoder> m_decoder;
130 DocumentEncodingData m_lastSeenEncodingData; 130 DocumentEncodingData m_lastSeenEncodingData;
131 std::unique_ptr<WebTaskRunner> m_loadingTaskRunner; 131 std::unique_ptr<WebTaskRunner> m_loadingTaskRunner;
132 RefPtr<TokenizedChunkQueue> m_tokenizedChunkQueue; 132 RefPtr<TokenizedChunkQueue> m_tokenizedChunkQueue;
133 133
134 // Will be nullptr if there was no meta csp tag so for this chunk.
135 CompactHTMLToken* m_pendingCSPMetaTag;
kouhei (in TOK) 2016/08/19 04:56:15 Can we use index here? CompactHTMLToken* scares me
Charlie Harrison 2016/08/19 15:13:40 Done.
136
134 bool m_startingScript; 137 bool m_startingScript;
135 double m_lastBytesReceivedTime; 138 double m_lastBytesReceivedTime;
136 bool m_shouldCoalesceChunks; 139 bool m_shouldCoalesceChunks;
137 }; 140 };
138 141
139 } // namespace blink 142 } // namespace blink
140 143
141 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698