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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/xml/XPathEvaluator.h
diff --git a/Source/core/xml/XPathEvaluator.h b/Source/core/xml/XPathEvaluator.h
index 0c556e7e4d8a61fbf9bee65bdc4e140a6dc560c6..51cc2e6cd598312a6155a32d0ba8d829d1c3bd82 100644
--- a/Source/core/xml/XPathEvaluator.h
+++ b/Source/core/xml/XPathEvaluator.h
@@ -28,6 +28,7 @@
#define XPathEvaluator_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -40,14 +41,20 @@ class XPathExpression;
class XPathNSResolver;
class XPathResult;
-class XPathEvaluator : public RefCounted<XPathEvaluator>, public ScriptWrappable {
+class XPathEvaluator : public RefCountedWillBeGarbageCollectedFinalized<XPathEvaluator>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<XPathEvaluator> create() { return adoptRef(new XPathEvaluator); }
+ static PassRefPtrWillBeRawPtr<XPathEvaluator> create()
+ {
+ return adoptRefWillBeNoop(new XPathEvaluator);
+ }
+
+ PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&);
+ PassRefPtrWillBeRawPtr<XPathNSResolver> createNSResolver(Node* nodeResolver);
+ PassRefPtrWillBeRawPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
+ PassRefPtrWillBeRawPtr<XPathNSResolver>, unsigned short type, XPathResult*, ExceptionState&);
- PassRefPtr<XPathExpression> createExpression(const String& expression, PassRefPtr<XPathNSResolver>, ExceptionState&);
- PassRefPtr<XPathNSResolver> createNSResolver(Node* nodeResolver);
- PassRefPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
- PassRefPtr<XPathNSResolver>, unsigned short type, XPathResult*, ExceptionState&);
+ void trace(Visitor*) { }
private:
XPathEvaluator()

Powered by Google App Engine
This is Rietveld 408576698