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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 30 matching lines...) Expand all
41 41
42 typedef size_t TokenPreloadScannerCheckpoint; 42 typedef size_t TokenPreloadScannerCheckpoint;
43 43
44 class HTMLParserOptions; 44 class HTMLParserOptions;
45 class HTMLTokenizer; 45 class HTMLTokenizer;
46 class SegmentedString; 46 class SegmentedString;
47 47
48 struct CORE_EXPORT CachedDocumentParameters { 48 struct CORE_EXPORT CachedDocumentParameters {
49 USING_FAST_MALLOC(CachedDocumentParameters); 49 USING_FAST_MALLOC(CachedDocumentParameters);
50 public: 50 public:
51 static PassOwnPtr<CachedDocumentParameters> create(Document* document, PassR efPtrWillBeRawPtr<MediaValuesCached> mediaValues = nullptr) 51 static PassOwnPtr<CachedDocumentParameters> create(Document* document, RawPt r<MediaValuesCached> mediaValues = nullptr)
52 { 52 {
53 return adoptPtr(new CachedDocumentParameters(document, mediaValues)); 53 return adoptPtr(new CachedDocumentParameters(document, mediaValues));
54 } 54 }
55 55
56 bool doHtmlPreloadScanning; 56 bool doHtmlPreloadScanning;
57 RefPtrWillBeCrossThreadPersistent<MediaValuesCached> mediaValues; 57 CrossThreadPersistent<MediaValuesCached> mediaValues;
58 Length defaultViewportMinWidth; 58 Length defaultViewportMinWidth;
59 bool viewportMetaZeroValuesQuirk; 59 bool viewportMetaZeroValuesQuirk;
60 bool viewportMetaEnabled; 60 bool viewportMetaEnabled;
61 ReferrerPolicy referrerPolicy; 61 ReferrerPolicy referrerPolicy;
62 62
63 private: 63 private:
64 CachedDocumentParameters(Document*, PassRefPtrWillBeRawPtr<MediaValuesCached >); 64 CachedDocumentParameters(Document*, RawPtr<MediaValuesCached>);
65 }; 65 };
66 66
67 class TokenPreloadScanner { 67 class TokenPreloadScanner {
68 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca nner); 68 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca nner);
69 public: 69 public:
70 TokenPreloadScanner(const KURL& documentURL, PassOwnPtr<CachedDocumentParame ters>); 70 TokenPreloadScanner(const KURL& documentURL, PassOwnPtr<CachedDocumentParame ters>);
71 ~TokenPreloadScanner(); 71 ~TokenPreloadScanner();
72 72
73 void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& re quests); 73 void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& re quests);
74 void scan(const CompactHTMLToken&, const SegmentedString&, PreloadRequestStr eam& requests); 74 void scan(const CompactHTMLToken&, const SegmentedString&, PreloadRequestStr eam& requests);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 private: 158 private:
159 TokenPreloadScanner m_scanner; 159 TokenPreloadScanner m_scanner;
160 SegmentedString m_source; 160 SegmentedString m_source;
161 HTMLToken m_token; 161 HTMLToken m_token;
162 OwnPtr<HTMLTokenizer> m_tokenizer; 162 OwnPtr<HTMLTokenizer> m_tokenizer;
163 }; 163 };
164 164
165 } // namespace blink 165 } // namespace blink
166 166
167 #endif 167 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698