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

Unified Diff: third_party/WebKit/Source/core/inspector/NetworkResourcesData.h

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments Created 4 years, 10 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: third_party/WebKit/Source/core/inspector/NetworkResourcesData.h
diff --git a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.h b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.h
index 3f2a4fb178447dfd316bcfb585e073d333751b6a..c4ee8b497a3320d0d20d5c2d5300440367dd8749 100644
--- a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.h
+++ b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.h
@@ -124,7 +124,7 @@ public:
PassRefPtr<SharedBuffer> buffer() const { return m_buffer; }
void setBuffer(PassRefPtr<SharedBuffer> buffer) { m_buffer = buffer; }
- Resource* cachedResource() const { return m_cachedResource; }
+ Resource* cachedResource() const { return m_cachedResource.get(); }
void setResource(Resource* cachedResource) { m_cachedResource = cachedResource; }
XHRReplayData* xhrReplayData() const { return m_xhrReplayData.get(); }
@@ -157,7 +157,7 @@ public:
OwnPtr<TextResourceDecoder> m_decoder;
RefPtr<SharedBuffer> m_buffer;
- RawPtrWillBeMember<Resource> m_cachedResource;
+ RefPtrWillBeMember<Resource> m_cachedResource;
RefPtr<BlobDataHandle> m_downloadedFileBlob;
};

Powered by Google App Engine
This is Rietveld 408576698