OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> | 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> |
3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef XPathParser_h | 27 #ifndef XPathParser_h |
28 #define XPathParser_h | 28 #define XPathParser_h |
29 | 29 |
30 #include "core/xml/XPathPredicate.h" | 30 #include "core/xml/XPathPredicate.h" |
31 #include "core/xml/XPathStep.h" | 31 #include "core/xml/XPathStep.h" |
32 #include "wtf/Allocator.h" | 32 #include "wtf/Allocator.h" |
33 #include <memory> | |
34 | 33 |
35 namespace blink { | 34 namespace blink { |
36 | 35 |
37 class ExceptionState; | 36 class ExceptionState; |
38 class XPathNSResolver; | 37 class XPathNSResolver; |
39 | 38 |
40 namespace XPath { | 39 namespace XPath { |
41 | 40 |
42 class Expression; | 41 class Expression; |
43 class LocationPath; | 42 class LocationPath; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 void reset(const String& data); | 102 void reset(const String& data); |
104 | 103 |
105 static Parser* currentParser; | 104 static Parser* currentParser; |
106 | 105 |
107 unsigned m_nextPos; | 106 unsigned m_nextPos; |
108 String m_data; | 107 String m_data; |
109 int m_lastTokenType; | 108 int m_lastTokenType; |
110 Member<XPathNSResolver> m_resolver; | 109 Member<XPathNSResolver> m_resolver; |
111 | 110 |
112 HashSet<std::unique_ptr<String>> m_strings; | 111 HashSet<OwnPtr<String>> m_strings; |
113 }; | 112 }; |
114 | 113 |
115 } // namespace XPath | 114 } // namespace XPath |
116 | 115 |
117 } // namespace blink | 116 } // namespace blink |
118 | 117 |
119 int xpathyyparse(blink::XPath::Parser*); | 118 int xpathyyparse(blink::XPath::Parser*); |
120 #endif | 119 #endif |
OLD | NEW |