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

Unified Diff: Source/core/fetch/ResourceFetcher.h

Issue 1116613003: Remove ResourceFetcher's access to a FrameFetchContext when detaching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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/fetch/ResourceFetcher.h
diff --git a/Source/core/fetch/ResourceFetcher.h b/Source/core/fetch/ResourceFetcher.h
index a661428051edad549667a15ff83a87ea33b8d92a..28f39792aefdf38b2e8ac7f22210b770b4675c7a 100644
--- a/Source/core/fetch/ResourceFetcher.h
+++ b/Source/core/fetch/ResourceFetcher.h
@@ -105,7 +105,8 @@ public:
bool shouldDeferImageLoad(const KURL&) const;
- FetchContext& context() const { return *m_context.get(); }
+ FetchContext& context() const { return m_context ? *m_context.get() : FetchContext::nullInstance(); }
+ void clearContext() { m_context.clear(); }
void garbageCollectDocumentResources();

Powered by Google App Engine
This is Rietveld 408576698