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

Unified Diff: Source/core/xml/DOMParser.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/DOMParser.h
diff --git a/Source/core/xml/DOMParser.h b/Source/core/xml/DOMParser.h
index afe0d16433ce5ec935e5e4dce6c0c40c78a8da3d..0610f2b4a11167ad5a241dd5c239a5822974bc85 100644
--- a/Source/core/xml/DOMParser.h
+++ b/Source/core/xml/DOMParser.h
@@ -20,6 +20,7 @@
#define DOMParser_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -29,12 +30,18 @@ namespace WebCore {
class Document;
class ExceptionState;
-class DOMParser : public RefCounted<DOMParser>, public ScriptWrappable {
+class DOMParser : public RefCountedWillBeGarbageCollectedFinalized<DOMParser>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); }
+ static PassRefPtrWillBeRawPtr<DOMParser> create()
+ {
+ return adoptRefWillBeNoop(new DOMParser);
+ }
PassRefPtr<Document> parseFromString(const String&, const String& contentType, ExceptionState&);
+ void trace(Visitor*) { }
+
private:
DOMParser()
{

Powered by Google App Engine
This is Rietveld 408576698