Index: Source/core/loader/FrameFetchContext.h |
diff --git a/Source/core/loader/FrameFetchContext.h b/Source/core/loader/FrameFetchContext.h |
index c3f4d66962cdb0cfa977cbe0c2c7b73c13c50bee..9b27d710da0055c0329c8b7e0592c17423451050 100644 |
--- a/Source/core/loader/FrameFetchContext.h |
+++ b/Source/core/loader/FrameFetchContext.h |
@@ -54,16 +54,11 @@ |
return ResourceFetcher::create(adoptPtrWillBeNoop(new FrameFetchContext(loader))); |
} |
- static void provideDocumentToContext(FetchContext& context, Document* document) |
- { |
- ASSERT(document); |
- RELEASE_ASSERT(context.isLiveContext()); |
- static_cast<FrameFetchContext&>(context).m_document = document; |
- } |
- |
~FrameFetchContext(); |
- bool isLiveContext() { return true; } |
+ Document* document() const { return m_document; } // Can be null |
+ void setDocument(Document* document) { m_document = document; } |
+ void clearDocumentLoader() { m_documentLoader = nullptr; } |
void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType) override; |
void setFirstPartyForCookies(ResourceRequest&) override; |