| Index: Source/core/loader/FrameFetchContext.h
|
| diff --git a/Source/core/loader/FrameFetchContext.h b/Source/core/loader/FrameFetchContext.h
|
| index 94e313cfbca54c7bda1fb7f00e62495efb082208..9c530ee65f4228cf4b6e369c0b22da2ea8ff16ed 100644
|
| --- a/Source/core/loader/FrameFetchContext.h
|
| +++ b/Source/core/loader/FrameFetchContext.h
|
| @@ -54,11 +54,16 @@ public:
|
| 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();
|
|
|
| - Document* document() const { return m_document; } // Can be null
|
| - void setDocument(Document* document) { m_document = document; }
|
| - void clearDocumentLoader() { m_documentLoader = nullptr; }
|
| + bool isLiveContext() { return true; }
|
|
|
| void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType) override;
|
| void setFirstPartyForCookies(ResourceRequest&) override;
|
|
|