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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 1428383002: Make ResourceFetcher::m_documentResources use WeakPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/Source/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 39bca1c02587c2975803b9a363188661e8339d1c..3e0e285af2435c26c969e028f62e2a947570f10f 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -265,6 +265,8 @@ public:
static const char* resourceTypeToString(Type, const FetchInitiatorInfo&);
+ WeakPtrWillBeRawPtr<Resource> asWeakPtr();
sof 2015/12/15 12:29:43 Add a TODO about removing this once Oilpan ships?
Nate Chapin 2015/12/15 20:30:59 Done.
+
#ifdef ENABLE_RESOURCE_IS_DELETED_CHECK
void assertAlive() const { RELEASE_ASSERT(!m_deleted); }
#else
@@ -382,6 +384,10 @@ private:
String m_fragmentIdentifierForRequest;
+#if !ENABLE(OILPAN)
+ WeakPtrFactory<Resource> m_weakPtrFactory;
+#endif
+
RefPtr<CachedMetadata> m_cachedMetadata;
OwnPtrWillBeMember<CacheHandler> m_cacheHandler;

Powered by Google App Engine
This is Rietveld 408576698