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

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

Issue 2625823003: Reset ResourceLoader::m_loader in the pre-finalizer (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceLoader.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/ResourceLoader.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.h b/third_party/WebKit/Source/core/fetch/ResourceLoader.h
index b836a4693f80a1129631b31ce32a8356b4e6967e..c8f0261ad9a106c638890b5664e17d855d424056 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceLoader.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.h
@@ -51,6 +51,8 @@ class ResourceFetcher;
class CORE_EXPORT ResourceLoader final
: public GarbageCollectedFinalized<ResourceLoader>,
protected WebURLLoaderClient {
+ USING_PRE_FINALIZER(ResourceLoader, dispose);
+
public:
static ResourceLoader* create(ResourceFetcher*, Resource*);
~ResourceLoader() override;
@@ -121,6 +123,7 @@ class CORE_EXPORT ResourceLoader final
void cancelForRedirectAccessCheckError(const KURL&,
ResourceRequestBlockedReason);
void requestSynchronously(const ResourceRequest&);
+ void dispose();
std::unique_ptr<WebURLLoader> m_loader;
Member<ResourceFetcher> m_fetcher;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698