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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 15 matching lines...) Expand all
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/ScriptResource.h" 31 #include "core/fetch/ScriptResource.h"
32 #include "core/xml/parser/XMLErrors.h" 32 #include "core/xml/parser/XMLErrors.h"
33 #include "platform/heap/Handle.h" 33 #include "platform/heap/Handle.h"
34 #include "platform/text/SegmentedString.h" 34 #include "platform/text/SegmentedString.h"
35 #include "wtf/HashMap.h" 35 #include "wtf/HashMap.h"
36 #include "wtf/OwnPtr.h"
37 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.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>
40 #include <memory>
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class ContainerNode; 44 class ContainerNode;
45 class ResourceFetcher; 45 class ResourceFetcher;
46 class DocumentFragment; 46 class DocumentFragment;
47 class Document; 47 class Document;
48 class Element; 48 class Element;
49 class FrameView; 49 class FrameView;
50 class Text; 50 class Text;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 void doWrite(const String&); 159 void doWrite(const String&);
160 void doEnd(); 160 void doEnd();
161 161
162 bool m_hasView; 162 bool m_hasView;
163 163
164 SegmentedString m_originalSourceForTransform; 164 SegmentedString m_originalSourceForTransform;
165 165
166 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; } 166 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; }
167 RefPtr<XMLParserContext> m_context; 167 RefPtr<XMLParserContext> m_context;
168 Deque<OwnPtr<PendingCallback>> m_pendingCallbacks; 168 Deque<std::unique_ptr<PendingCallback>> m_pendingCallbacks;
169 Vector<xmlChar> m_bufferedText; 169 Vector<xmlChar> m_bufferedText;
170 170
171 Member<ContainerNode> m_currentNode; 171 Member<ContainerNode> m_currentNode;
172 HeapVector<Member<ContainerNode>> m_currentNodeStack; 172 HeapVector<Member<ContainerNode>> m_currentNodeStack;
173 173
174 Member<Text> m_leafTextNode; 174 Member<Text> m_leafTextNode;
175 175
176 bool m_isCurrentlyParsing8BitChunk; 176 bool m_isCurrentlyParsing8BitChunk;
177 bool m_sawError; 177 bool m_sawError;
178 bool m_sawCSS; 178 bool m_sawCSS;
(...skipping 17 matching lines...) Expand all
196 PrefixForNamespaceMap m_prefixToNamespaceMap; 196 PrefixForNamespaceMap m_prefixToNamespaceMap;
197 SegmentedString m_pendingSrc; 197 SegmentedString m_pendingSrc;
198 }; 198 };
199 199
200 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ; 200 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ;
201 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); 201 HashMap<String, String> parseAttributes(const String&, bool& attrsOK);
202 202
203 } // namespace blink 203 } // namespace blink
204 204
205 #endif // XMLDocumentParser_h 205 #endif // XMLDocumentParser_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XSLImportRule.h ('k') | third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698