OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 { | 102 { |
103 } | 103 } |
104 | 104 |
105 KURL predictedBaseElementURL; | 105 KURL predictedBaseElementURL; |
106 bool inStyle; | 106 bool inStyle; |
107 bool isAppCacheEnabled; | 107 bool isAppCacheEnabled; |
108 bool isCSPEnabled; | 108 bool isCSPEnabled; |
109 size_t templateCount; | 109 size_t templateCount; |
110 }; | 110 }; |
111 | 111 |
112 struct PictureData { | |
113 PictureData() | |
114 : sourceSize(0.0) | |
115 , sourceSizeSet(false) | |
116 , picked(false) | |
117 { | |
118 } | |
119 String sourceURL; | |
120 float sourceSize; | |
121 bool sourceSizeSet; | |
122 bool picked; | |
123 }; | |
124 | |
125 CSSPreloadScanner m_cssScanner; | 112 CSSPreloadScanner m_cssScanner; |
126 const KURL m_documentURL; | 113 const KURL m_documentURL; |
127 KURL m_predictedBaseElementURL; | 114 KURL m_predictedBaseElementURL; |
128 bool m_inStyle; | 115 bool m_inStyle; |
129 bool m_inPicture; | 116 bool m_inPicture; |
130 bool m_isAppCacheEnabled; | 117 bool m_isAppCacheEnabled; |
131 bool m_isCSPEnabled; | 118 bool m_isCSPEnabled; |
132 PictureData m_pictureData; | 119 String m_pictureSourceURL; |
133 size_t m_templateCount; | 120 size_t m_templateCount; |
134 OwnPtr<CachedDocumentParameters> m_documentParameters; | 121 OwnPtr<CachedDocumentParameters> m_documentParameters; |
135 ClientHintsPreferences m_clientHintsPreferences; | 122 ClientHintsPreferences m_clientHintsPreferences; |
136 | 123 |
137 Vector<Checkpoint> m_checkpoints; | 124 Vector<Checkpoint> m_checkpoints; |
138 }; | 125 }; |
139 | 126 |
140 class CORE_EXPORT HTMLPreloadScanner { | 127 class CORE_EXPORT HTMLPreloadScanner { |
141 WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED(HTMLPreloa
dScanner); | 128 WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED(HTMLPreloa
dScanner); |
142 public: | 129 public: |
(...skipping 12 matching lines...) Expand all Loading... |
155 private: | 142 private: |
156 TokenPreloadScanner m_scanner; | 143 TokenPreloadScanner m_scanner; |
157 SegmentedString m_source; | 144 SegmentedString m_source; |
158 HTMLToken m_token; | 145 HTMLToken m_token; |
159 OwnPtr<HTMLTokenizer> m_tokenizer; | 146 OwnPtr<HTMLTokenizer> m_tokenizer; |
160 }; | 147 }; |
161 | 148 |
162 } | 149 } |
163 | 150 |
164 #endif | 151 #endif |
OLD | NEW |