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

Unified Diff: Source/core/html/parser/HTMLResourcePreloader.h

Issue 387863002: Oilpan: Prepare to move HTMLResourcePreloader to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLResourcePreloader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLResourcePreloader.h
diff --git a/Source/core/html/parser/HTMLResourcePreloader.h b/Source/core/html/parser/HTMLResourcePreloader.h
index ee6868c143c69d33dede126b8660f4e6b7545d71..bb1a3b00117a0858066a726d8d620b4aa3d9a01f 100644
--- a/Source/core/html/parser/HTMLResourcePreloader.h
+++ b/Source/core/html/parser/HTMLResourcePreloader.h
@@ -83,19 +83,19 @@ private:
typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream;
-class HTMLResourcePreloader {
- WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED;
+class HTMLResourcePreloader FINAL : public NoBaseWillBeGarbageCollected<HTMLResourcePreloader> {
+ WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- explicit HTMLResourcePreloader(Document* document)
- : m_document(document)
- {
- }
+ static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&);
+ void trace(Visitor*);
void takeAndPreload(PreloadRequestStream&);
void preload(PassOwnPtr<PreloadRequest>);
private:
- Document* m_document;
+ explicit HTMLResourcePreloader(Document&);
+
+ RawPtrWillBeMember<Document> m_document;
};
}
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLResourcePreloader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698