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

Unified Diff: third_party/WebKit/Source/core/fetch/RawResource.h

Issue 2184263003: Move RawResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-threadable-loader
Patch Set: rebase Created 4 years, 4 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 | « no previous file | third_party/WebKit/Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/RawResource.h
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.h b/third_party/WebKit/Source/core/fetch/RawResource.h
index a2328a2bb94d93f0bed7a3baeb02696c4d0321ce..d8a0d5233db79b09cba048beb57cd9195a552438 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.h
+++ b/third_party/WebKit/Source/core/fetch/RawResource.h
@@ -102,12 +102,8 @@ inline RawResource* toRawResource(Resource* resource)
return static_cast<RawResource*>(resource);
}
-class CORE_EXPORT RawResourceClient : public ResourceClient {
+class CORE_EXPORT RawResourceClient : public GarbageCollectedMixin, public ResourceClient {
public:
- RawResourceClient()
- : m_weakFactory(this) { }
- WeakPtr<RawResourceClient> createWeakPtr() { return m_weakFactory.createWeakPtr(); }
- ~RawResourceClient() override {}
static bool isExpectedType(ResourceClient* client) { return client->getResourceClientType() == RawResourceType; }
ResourceClientType getResourceClientType() const final { return RawResourceType; }
@@ -120,8 +116,7 @@ public:
virtual void dataDownloaded(Resource*, int) { }
virtual void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) { }
-private:
- WeakPtrFactory<RawResourceClient> m_weakFactory;
+ DEFINE_INLINE_VIRTUAL_TRACE() {}
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698