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

Side by Side Diff: Source/core/xml/XPathEvaluator.h

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2005 Frerich Raabe <raabe@kde.org> 2 * Copyright 2005 Frerich Raabe <raabe@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 10 matching lines...) Expand all
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 XPathEvaluator_h 27 #ifndef XPathEvaluator_h
28 #define XPathEvaluator_h 28 #define XPathEvaluator_h
29 29
30 #include "bindings/v8/ScriptWrappable.h" 30 #include "bindings/v8/ScriptWrappable.h"
31 #include "heap/Handle.h"
31 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
32 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
34 35
35 namespace WebCore { 36 namespace WebCore {
36 37
37 class ExceptionState; 38 class ExceptionState;
38 class Node; 39 class Node;
39 class XPathExpression; 40 class XPathExpression;
40 class XPathNSResolver; 41 class XPathNSResolver;
41 class XPathResult; 42 class XPathResult;
42 43
43 class XPathEvaluator : public RefCounted<XPathEvaluator>, public ScriptWrappable { 44 class XPathEvaluator : public RefCountedWillBeGarbageCollectedFinalized<XPathEva luator>, public ScriptWrappable {
45 DECLARE_GC_INFO;
44 public: 46 public:
45 static PassRefPtr<XPathEvaluator> create() { return adoptRef(new XPathEvalua tor); } 47 static PassRefPtrWillBeRawPtr<XPathEvaluator> create()
48 {
49 return adoptRefWillBeNoop(new XPathEvaluator);
50 }
46 51
47 PassRefPtr<XPathExpression> createExpression(const String& expression, PassR efPtr<XPathNSResolver>, ExceptionState&); 52 PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expre ssion, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&);
48 PassRefPtr<XPathNSResolver> createNSResolver(Node* nodeResolver); 53 PassRefPtrWillBeRawPtr<XPathNSResolver> createNSResolver(Node* nodeResolver) ;
49 PassRefPtr<XPathResult> evaluate(const String& expression, Node* contextNode , 54 PassRefPtrWillBeRawPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
50 PassRefPtr<XPathNSResolver>, unsigned short type, XPathResult*, Exceptio nState&); 55 PassRefPtrWillBeRawPtr<XPathNSResolver>, unsigned short type, XPathResul t*, ExceptionState&);
56
57 void trace(Visitor*) { }
51 58
52 private: 59 private:
53 XPathEvaluator() 60 XPathEvaluator()
54 { 61 {
55 ScriptWrappable::init(this); 62 ScriptWrappable::init(this);
56 } 63 }
57 }; 64 };
58 65
59 } 66 }
60 67
61 #endif // XPathEvaluator_h 68 #endif // XPathEvaluator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698