| Index: Source/core/loader/FrameFetchContext.h
|
| diff --git a/Source/core/loader/FrameFetchContext.h b/Source/core/loader/FrameFetchContext.h
|
| index 9c530ee65f4228cf4b6e369c0b22da2ea8ff16ed..94e313cfbca54c7bda1fb7f00e62495efb082208 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;
|
|
|