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

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

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments 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) 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 10 matching lines...) Expand all
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef XMLDocumentParser_h 25 #ifndef XMLDocumentParser_h
26 #define XMLDocumentParser_h 26 #define XMLDocumentParser_h
27 27
28 #include "core/dom/ParserContentPolicy.h" 28 #include "core/dom/ParserContentPolicy.h"
29 #include "core/dom/ScriptableDocumentParser.h" 29 #include "core/dom/ScriptableDocumentParser.h"
30 #include "core/fetch/ResourceClient.h" 30 #include "core/fetch/ResourceClient.h"
31 #include "core/fetch/ResourcePtr.h"
32 #include "core/fetch/ScriptResource.h" 31 #include "core/fetch/ScriptResource.h"
33 #include "core/xml/parser/XMLErrors.h" 32 #include "core/xml/parser/XMLErrors.h"
34 #include "platform/heap/Handle.h" 33 #include "platform/heap/Handle.h"
35 #include "platform/text/SegmentedString.h" 34 #include "platform/text/SegmentedString.h"
36 #include "wtf/HashMap.h" 35 #include "wtf/HashMap.h"
37 #include "wtf/OwnPtr.h" 36 #include "wtf/OwnPtr.h"
38 #include "wtf/text/CString.h" 37 #include "wtf/text/CString.h"
39 #include "wtf/text/StringHash.h" 38 #include "wtf/text/StringHash.h"
40 #include <libxml/tree.h> 39 #include <libxml/tree.h>
41 40
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool m_sawCSS; 177 bool m_sawCSS;
179 bool m_sawXSLTransform; 178 bool m_sawXSLTransform;
180 bool m_sawFirstElement; 179 bool m_sawFirstElement;
181 bool m_isXHTMLDocument; 180 bool m_isXHTMLDocument;
182 bool m_parserPaused; 181 bool m_parserPaused;
183 bool m_requestingScript; 182 bool m_requestingScript;
184 bool m_finishCalled; 183 bool m_finishCalled;
185 184
186 XMLErrors m_xmlErrors; 185 XMLErrors m_xmlErrors;
187 186
188 ResourcePtr<ScriptResource> m_pendingScript; 187 RefPtrWillBeMember<ScriptResource> m_pendingScript;
189 RefPtrWillBeMember<Element> m_scriptElement; 188 RefPtrWillBeMember<Element> m_scriptElement;
190 TextPosition m_scriptStartPosition; 189 TextPosition m_scriptStartPosition;
191 190
192 bool m_parsingFragment; 191 bool m_parsingFragment;
193 AtomicString m_defaultNamespaceURI; 192 AtomicString m_defaultNamespaceURI;
194 193
195 typedef HashMap<AtomicString, AtomicString> PrefixForNamespaceMap; 194 typedef HashMap<AtomicString, AtomicString> PrefixForNamespaceMap;
196 PrefixForNamespaceMap m_prefixToNamespaceMap; 195 PrefixForNamespaceMap m_prefixToNamespaceMap;
197 SegmentedString m_pendingSrc; 196 SegmentedString m_pendingSrc;
198 }; 197 };
199 198
200 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ; 199 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ;
201 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); 200 HashMap<String, String> parseAttributes(const String&, bool& attrsOK);
202 201
203 } // namespace blink 202 } // namespace blink
204 203
205 #endif // XMLDocumentParser_h 204 #endif // XMLDocumentParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698