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

Unified Diff: Source/core/loader/DocumentWriter.h

Issue 314953002: Oilpan: Replace RefPtrs to Node and its subclasses in core/loader with Oilpan transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentWriter.h
diff --git a/Source/core/loader/DocumentWriter.h b/Source/core/loader/DocumentWriter.h
index b4ab04fcb0c01ce1513419907ea80bd2208e1694..42d7ee6a1c8e1c648095545681ee672a9f1e3a0c 100644
--- a/Source/core/loader/DocumentWriter.h
+++ b/Source/core/loader/DocumentWriter.h
@@ -43,12 +43,13 @@ class KURL;
class SecurityOrigin;
class TextResourceDecoder;
-class DocumentWriter : public RefCounted<DocumentWriter> {
+class DocumentWriter : public RefCountedWillBeGarbageCollectedFinalized<DocumentWriter> {
WTF_MAKE_NONCOPYABLE(DocumentWriter);
public:
- static PassRefPtr<DocumentWriter> create(Document*, const AtomicString& mimeType = emptyAtom, const AtomicString& encoding = emptyAtom, bool encodingUserChoosen = false);
+ static PassRefPtrWillBeRawPtr<DocumentWriter> create(Document*, const AtomicString& mimeType = emptyAtom, const AtomicString& encoding = emptyAtom, bool encodingUserChoosen = false);
~DocumentWriter();
+ void trace(Visitor*);
void end();
@@ -72,12 +73,10 @@ public:
private:
DocumentWriter(Document*, const AtomicString& mimeType, const AtomicString& encoding, bool encodingUserChoosen);
- PassRefPtr<Document> createDocument(const KURL&);
-
- Document* m_document;
+ RawPtrWillBeMember<Document> m_document;
TextResourceDecoderBuilder m_decoderBuilder;
- RefPtrWillBePersistent<DocumentParser> m_parser;
+ RefPtrWillBeMember<DocumentParser> m_parser;
};
} // namespace WebCore
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698