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

Unified Diff: Source/core/html/HTMLImageLoader.h

Issue 320253002: Oilpan: Prepare to move ImageLoader and its subclasses to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
Index: Source/core/html/HTMLImageLoader.h
diff --git a/Source/core/html/HTMLImageLoader.h b/Source/core/html/HTMLImageLoader.h
index 71c5365dbe8642697a20f101a053bdae2eefa7df..b9b93b8f9bde673ceb176421257e0c54effee576 100644
--- a/Source/core/html/HTMLImageLoader.h
+++ b/Source/core/html/HTMLImageLoader.h
@@ -29,13 +29,19 @@ namespace WebCore {
class HTMLImageLoader FINAL : public ImageLoader {
public:
- HTMLImageLoader(Element*);
+ static PassOwnPtrWillBeRawPtr<HTMLImageLoader> create(Element* element)
+ {
+ return adoptPtrWillBeNoop(new HTMLImageLoader(element));
+ }
virtual ~HTMLImageLoader();
virtual void dispatchLoadEvent() OVERRIDE;
virtual String sourceURI(const AtomicString&) const OVERRIDE;
virtual void notifyFinished(Resource*) OVERRIDE;
+
+private:
+ explicit HTMLImageLoader(Element*);
};
}

Powered by Google App Engine
This is Rietveld 408576698