OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DocumentWriteEvaluator_h | 5 #ifndef DocumentWriteEvaluator_h |
6 #define DocumentWriteEvaluator_h | 6 #define DocumentWriteEvaluator_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/V8Binding.h" | 9 #include "bindings/core/v8/V8Binding.h" |
9 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
10 #include "core/frame/Navigator.h" | 11 #include "core/frame/Navigator.h" |
11 #include "core/html/parser/CompactHTMLToken.h" | 12 #include "core/html/parser/CompactHTMLToken.h" |
12 #include "core/html/parser/HTMLToken.h" | 13 #include "core/html/parser/HTMLToken.h" |
13 #include "core/html/parser/HTMLTokenizer.h" | 14 #include "core/html/parser/HTMLTokenizer.h" |
14 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
15 #include <memory> | |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 // This class is used by the preload scanner on the background parser thread to | 19 // This class is used by the preload scanner on the background parser thread to |
20 // execute inline Javascript and preload resources that would have been written | 20 // execute inline Javascript and preload resources that would have been written |
21 // by document.write(). It takes a script string and outputs a vector of start | 21 // by document.write(). It takes a script string and outputs a vector of start |
22 // tag tokens. | 22 // tag tokens. |
23 class CORE_EXPORT DocumentWriteEvaluator { | 23 class CORE_EXPORT DocumentWriteEvaluator { |
24 WTF_MAKE_NONCOPYABLE(DocumentWriteEvaluator); | 24 WTF_MAKE_NONCOPYABLE(DocumentWriteEvaluator); |
25 USING_FAST_MALLOC(DocumentWriteEvaluator); | 25 USING_FAST_MALLOC(DocumentWriteEvaluator); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 String m_pathName; | 63 String m_pathName; |
64 String m_hostName; | 64 String m_hostName; |
65 String m_protocol; | 65 String m_protocol; |
66 String m_userAgent; | 66 String m_userAgent; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace blink | 69 } // namespace blink |
70 | 70 |
71 #endif // DocumentWriteEvaluator_h | 71 #endif // DocumentWriteEvaluator_h |
OLD | NEW |