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

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

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidier assignment of Web*FrameImpl self-persistent refs Created 6 years, 3 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/loader/ProgressTracker.h
diff --git a/Source/core/loader/ProgressTracker.h b/Source/core/loader/ProgressTracker.h
index 5e7188fa8885bec9cfbf4e0338c398988a41aa73..d3dcd2cfffaed91dba26f59f8b0ee6510dd4c847 100644
--- a/Source/core/loader/ProgressTracker.h
+++ b/Source/core/loader/ProgressTracker.h
@@ -66,6 +66,12 @@ private:
void reset();
+ // This bare frame pointer is safe; it refers to the
Mads Ager (chromium) 2014/09/19 06:37:24 Add FIXME: Move ProgressTracker to the oilpan heap
sof 2014/09/19 11:56:43 FIXME: Oilpan: added.
+ // owning frame (via FrameLoader.)
+ //
+ // ProgressTracker is finalized by FrameLoader (which in turn is
+ // finalized by LocalFrame.) Its lifetime thus guarantees that
+ // m_frame cannot be used to access a dead LocalFrame.
LocalFrame* m_frame;
bool m_inProgress;
long long m_totalPageAndResourceBytesToLoad;

Powered by Google App Engine
This is Rietveld 408576698