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

Unified Diff: Source/core/fetch/FetchContext.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/FetchContext.h
diff --git a/Source/core/fetch/FetchContext.h b/Source/core/fetch/FetchContext.h
index 80135b6e10df9cc691c8b8468c77c0aa2221dbb6..a63e246ba1f3371c438930e412df6aa38d484c90 100644
--- a/Source/core/fetch/FetchContext.h
+++ b/Source/core/fetch/FetchContext.h
@@ -57,14 +57,13 @@ enum FetchResourceType {
class CORE_EXPORT FetchContext : public NoBaseWillBeGarbageCollectedFinalized<FetchContext> {
WTF_MAKE_NONCOPYABLE(FetchContext);
public:
- static PassOwnPtrWillBeRawPtr<FetchContext> create()
- {
- return adoptPtrWillBeNoop(new FetchContext);
- }
+ static FetchContext& nullInstance();
virtual ~FetchContext() { }
DEFINE_INLINE_VIRTUAL_TRACE() { }
+ virtual bool isLiveContext() { return false; }
+
virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType);
virtual void setFirstPartyForCookies(ResourceRequest&);
virtual CachePolicy cachePolicy() const;

Powered by Google App Engine
This is Rietveld 408576698