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

Unified Diff: Source/core/loader/FrameFetchContext.h

Issue 1035803002: Remove ResourceFetcher's access to a real FetchContext at frame detach time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved ASSERT(!m_importsController) to #if !ENABLE(OILPAN) block 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
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContext.h
diff --git a/Source/core/loader/FrameFetchContext.h b/Source/core/loader/FrameFetchContext.h
index 9b27d710da0055c0329c8b7e0592c17423451050..c3f4d66962cdb0cfa977cbe0c2c7b73c13c50bee 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;
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698