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

Unified Diff: Source/core/xml/XPathExpression.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/XPathExpression.h
diff --git a/Source/core/xml/XPathExpression.h b/Source/core/xml/XPathExpression.h
index 64a3cd38ae50daaf33b799f4fcba1b04d1ead527..1dfc73cc676232ec6024bc76e4d7513229f603db 100644
--- a/Source/core/xml/XPathExpression.h
+++ b/Source/core/xml/XPathExpression.h
@@ -28,6 +28,7 @@
#define XPathExpression_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -43,13 +44,19 @@ namespace XPath {
class Expression;
}
-class XPathExpression : public RefCounted<XPathExpression>, public ScriptWrappable {
+class XPathExpression : public RefCountedWillBeGarbageCollectedFinalized<XPathExpression>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<XPathExpression> create() { return adoptRef(new XPathExpression); }
+ static PassRefPtrWillBeRawPtr<XPathExpression> create()
+ {
+ return adoptRefWillBeNoop(new XPathExpression);
+ }
~XPathExpression();
- static PassRefPtr<XPathExpression> createExpression(const String& expression, PassRefPtr<XPathNSResolver>, ExceptionState&);
- PassRefPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&);
+ PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionState&);
+
+ void trace(Visitor*) { }
private:
XPathExpression()

Powered by Google App Engine
This is Rietveld 408576698