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

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoader.h

Issue 1569273004: Move ResourceOwner on to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win_chromium_compile_dbg_ng is the worst Created 4 years, 11 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: 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>*);

Powered by Google App Engine
This is Rietveld 408576698