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

Side by Side Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.h

Issue 1854543002: Oilpan: Remove WillBe types (part 7) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
5 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 5 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 private: 58 private:
59 XMLParserContext(xmlParserCtxtPtr context) 59 XMLParserContext(xmlParserCtxtPtr context)
60 : m_context(context) 60 : m_context(context)
61 { 61 {
62 } 62 }
63 63
64 xmlParserCtxtPtr m_context; 64 xmlParserCtxtPtr m_context;
65 }; 65 };
66 66
67 class XMLDocumentParser final : public ScriptableDocumentParser, public ScriptRe sourceClient { 67 class XMLDocumentParser final : public ScriptableDocumentParser, public ScriptRe sourceClient {
68 USING_FAST_MALLOC_WILL_BE_REMOVED(XMLDocumentParser);
69 public: 68 public:
70 static PassRefPtrWillBeRawPtr<XMLDocumentParser> create(Document& document, FrameView* view) 69 static RawPtr<XMLDocumentParser> create(Document& document, FrameView* view)
71 { 70 {
72 return adoptRefWillBeNoop(new XMLDocumentParser(document, view)); 71 return new XMLDocumentParser(document, view);
73 } 72 }
74 static PassRefPtrWillBeRawPtr<XMLDocumentParser> create(DocumentFragment* fr agment, Element* element, ParserContentPolicy parserContentPolicy) 73 static RawPtr<XMLDocumentParser> create(DocumentFragment* fragment, Element* element, ParserContentPolicy parserContentPolicy)
75 { 74 {
76 return adoptRefWillBeNoop(new XMLDocumentParser(fragment, element, parse rContentPolicy)); 75 return new XMLDocumentParser(fragment, element, parserContentPolicy);
77 } 76 }
78 ~XMLDocumentParser() override; 77 ~XMLDocumentParser() override;
79 DECLARE_VIRTUAL_TRACE(); 78 DECLARE_VIRTUAL_TRACE();
80 79
81 // Exposed for callbacks: 80 // Exposed for callbacks:
82 void handleError(XMLErrors::ErrorType, const char* message, TextPosition); 81 void handleError(XMLErrors::ErrorType, const char* message, TextPosition);
83 82
84 void setIsXHTMLDocument(bool isXHTML) { m_isXHTMLDocument = isXHTML; } 83 void setIsXHTMLDocument(bool isXHTML) { m_isXHTMLDocument = isXHTML; }
85 bool isXHTMLDocument() const { return m_isXHTMLDocument; } 84 bool isXHTMLDocument() const { return m_isXHTMLDocument; }
86 85
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 159
161 bool m_hasView; 160 bool m_hasView;
162 161
163 SegmentedString m_originalSourceForTransform; 162 SegmentedString m_originalSourceForTransform;
164 163
165 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; } 164 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; }
166 RefPtr<XMLParserContext> m_context; 165 RefPtr<XMLParserContext> m_context;
167 Deque<OwnPtr<PendingCallback>> m_pendingCallbacks; 166 Deque<OwnPtr<PendingCallback>> m_pendingCallbacks;
168 Vector<xmlChar> m_bufferedText; 167 Vector<xmlChar> m_bufferedText;
169 168
170 RawPtrWillBeMember<ContainerNode> m_currentNode; 169 Member<ContainerNode> m_currentNode;
171 WillBeHeapVector<RawPtrWillBeMember<ContainerNode>> m_currentNodeStack; 170 HeapVector<Member<ContainerNode>> m_currentNodeStack;
172 171
173 RefPtrWillBeMember<Text> m_leafTextNode; 172 Member<Text> m_leafTextNode;
174 173
175 bool m_isCurrentlyParsing8BitChunk; 174 bool m_isCurrentlyParsing8BitChunk;
176 bool m_sawError; 175 bool m_sawError;
177 bool m_sawCSS; 176 bool m_sawCSS;
178 bool m_sawXSLTransform; 177 bool m_sawXSLTransform;
179 bool m_sawFirstElement; 178 bool m_sawFirstElement;
180 bool m_isXHTMLDocument; 179 bool m_isXHTMLDocument;
181 bool m_parserPaused; 180 bool m_parserPaused;
182 bool m_requestingScript; 181 bool m_requestingScript;
183 bool m_finishCalled; 182 bool m_finishCalled;
184 183
185 XMLErrors m_xmlErrors; 184 XMLErrors m_xmlErrors;
186 185
187 RefPtrWillBeMember<ScriptResource> m_pendingScript; 186 Member<ScriptResource> m_pendingScript;
188 RefPtrWillBeMember<Element> m_scriptElement; 187 Member<Element> m_scriptElement;
189 TextPosition m_scriptStartPosition; 188 TextPosition m_scriptStartPosition;
190 189
191 bool m_parsingFragment; 190 bool m_parsingFragment;
192 AtomicString m_defaultNamespaceURI; 191 AtomicString m_defaultNamespaceURI;
193 192
194 typedef HashMap<AtomicString, AtomicString> PrefixForNamespaceMap; 193 typedef HashMap<AtomicString, AtomicString> PrefixForNamespaceMap;
195 PrefixForNamespaceMap m_prefixToNamespaceMap; 194 PrefixForNamespaceMap m_prefixToNamespaceMap;
196 SegmentedString m_pendingSrc; 195 SegmentedString m_pendingSrc;
197 }; 196 };
198 197
199 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ; 198 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ;
200 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); 199 HashMap<String, String> parseAttributes(const String&, bool& attrsOK);
201 200
202 } // namespace blink 201 } // namespace blink
203 202
204 #endif // XMLDocumentParser_h 203 #endif // XMLDocumentParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698