| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 struct CORE_EXPORT CachedDocumentParameters { | 58 struct CORE_EXPORT CachedDocumentParameters { |
| 59 USING_FAST_MALLOC(CachedDocumentParameters); | 59 USING_FAST_MALLOC(CachedDocumentParameters); |
| 60 public: | 60 public: |
| 61 static std::unique_ptr<CachedDocumentParameters> create(Document* document) | 61 static std::unique_ptr<CachedDocumentParameters> create(Document* document) |
| 62 { | 62 { |
| 63 return wrapUnique(new CachedDocumentParameters(document)); | 63 return wrapUnique(new CachedDocumentParameters(document)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 static std::unique_ptr<CachedDocumentParameters> create() |
| 67 { |
| 68 return wrapUnique(new CachedDocumentParameters); |
| 69 } |
| 70 |
| 66 bool doHtmlPreloadScanning; | 71 bool doHtmlPreloadScanning; |
| 67 bool doDocumentWritePreloadScanning; | 72 bool doDocumentWritePreloadScanning; |
| 68 Length defaultViewportMinWidth; | 73 Length defaultViewportMinWidth; |
| 69 bool viewportMetaZeroValuesQuirk; | 74 bool viewportMetaZeroValuesQuirk; |
| 70 bool viewportMetaEnabled; | 75 bool viewportMetaEnabled; |
| 71 ReferrerPolicy referrerPolicy; | 76 ReferrerPolicy referrerPolicy; |
| 72 | 77 |
| 73 private: | 78 private: |
| 74 explicit CachedDocumentParameters(Document*); | 79 explicit CachedDocumentParameters(Document*); |
| 80 CachedDocumentParameters() = default; |
| 75 }; | 81 }; |
| 76 | 82 |
| 77 class TokenPreloadScanner { | 83 class TokenPreloadScanner { |
| 78 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca
nner); | 84 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca
nner); |
| 79 public: | 85 public: |
| 80 TokenPreloadScanner(const KURL& documentURL, std::unique_ptr<CachedDocumentP
arameters>, const MediaValuesCached::MediaValuesCachedData&); | 86 TokenPreloadScanner(const KURL& documentURL, std::unique_ptr<CachedDocumentP
arameters>, const MediaValuesCached::MediaValuesCachedData&); |
| 81 ~TokenPreloadScanner(); | 87 ~TokenPreloadScanner(); |
| 82 | 88 |
| 83 void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& re
quests, ViewportDescriptionWrapper*); | 89 void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& re
quests, ViewportDescriptionWrapper*); |
| 84 void scan(const CompactHTMLToken&, const SegmentedString&, PreloadRequestStr
eam& requests, ViewportDescriptionWrapper*, bool* likelyDocumentWriteScript); | 90 void scan(const CompactHTMLToken&, const SegmentedString&, PreloadRequestStr
eam& requests, ViewportDescriptionWrapper*, bool* likelyDocumentWriteScript); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 175 |
| 170 TokenPreloadScanner m_scanner; | 176 TokenPreloadScanner m_scanner; |
| 171 SegmentedString m_source; | 177 SegmentedString m_source; |
| 172 HTMLToken m_token; | 178 HTMLToken m_token; |
| 173 std::unique_ptr<HTMLTokenizer> m_tokenizer; | 179 std::unique_ptr<HTMLTokenizer> m_tokenizer; |
| 174 }; | 180 }; |
| 175 | 181 |
| 176 } // namespace blink | 182 } // namespace blink |
| 177 | 183 |
| 178 #endif | 184 #endif |
| OLD | NEW |