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

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

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/HTMLResourcePreloader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLResourcePreloader.cpp
diff --git a/Source/core/html/parser/HTMLResourcePreloader.cpp b/Source/core/html/parser/HTMLResourcePreloader.cpp
index 768576271412324d8be479b122f610df86ef2abf..9b0738d3e94a360b1a879986092b4bd534659e64 100644
--- a/Source/core/html/parser/HTMLResourcePreloader.cpp
+++ b/Source/core/html/parser/HTMLResourcePreloader.cpp
@@ -61,6 +61,21 @@ FetchRequest PreloadRequest::resourceRequest(Document* document)
return request;
}
+inline HTMLResourcePreloader::HTMLResourcePreloader(Document& document)
+ : m_document(document)
+{
+}
+
+PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> HTMLResourcePreloader::create(Document& document)
+{
+ return adoptPtrWillBeNoop(new HTMLResourcePreloader(document));
+}
+
+void HTMLResourcePreloader::trace(Visitor* visitor)
+{
+ visitor->trace(m_document);
+}
+
void HTMLResourcePreloader::takeAndPreload(PreloadRequestStream& r)
{
PreloadRequestStream requests;
« no previous file with comments | « Source/core/html/parser/HTMLResourcePreloader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698