Index: third_party/WebKit/Source/core/loader/LinkLoader.h |
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.h b/third_party/WebKit/Source/core/loader/LinkLoader.h |
index bb79b8e8c50ae8a597f7bd9d1f2f5628c183ff5a..ce5b48ff037870d170b67325099435ab24b73795 100644 |
--- a/third_party/WebKit/Source/core/loader/LinkLoader.h |
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.h |
@@ -50,10 +50,13 @@ class NetworkHintsInterface; |
class PrerenderHandle; |
// The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefetch and prerender. |
-class CORE_EXPORT LinkLoader final : public ResourceOwner<Resource, ResourceClient>, public PrerenderClient { |
- DISALLOW_NEW(); |
+class CORE_EXPORT LinkLoader final : public NoBaseWillBeGarbageCollectedFinalized<LinkLoader>, public ResourceOwner<Resource, ResourceClient>, public PrerenderClient { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkLoader); |
public: |
- explicit LinkLoader(LinkLoaderClient*); |
+ static PassOwnPtrWillBeRawPtr<LinkLoader> create(LinkLoaderClient* client) |
+ { |
+ return adoptPtrWillBeNoop(new LinkLoader(client)); |
+ } |
~LinkLoader() override; |
// from ResourceClient |
@@ -75,6 +78,8 @@ public: |
DECLARE_TRACE(); |
private: |
+ explicit LinkLoader(LinkLoaderClient*); |
+ |
void linkLoadTimerFired(Timer<LinkLoader>*); |
void linkLoadingErrorTimerFired(Timer<LinkLoader>*); |