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

Unified Diff: Source/core/page/PageLifecycleObserver.h

Issue 1017313002: Simplify handling of LocalFrame lifecycle notifications. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clear context on FDO::contextDestroyed() Created 5 years, 9 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/page/PageLifecycleObserver.h
diff --git a/Source/core/page/PageLifecycleObserver.h b/Source/core/page/PageLifecycleObserver.h
index 46e10c948a8bbcbe1b747ba1e6d18722ba60df23..80d596742c03ec06cce885798496e1fbe1885169 100644
--- a/Source/core/page/PageLifecycleObserver.h
+++ b/Source/core/page/PageLifecycleObserver.h
@@ -41,11 +41,10 @@ public:
virtual void pageVisibilityChanged() { }
virtual void didCommitLoad(LocalFrame*) { }
- Page* page() const;
+ Page* page() const { return lifecycleContext(); }
protected:
explicit PageLifecycleObserver(Page*);
- virtual ~PageLifecycleObserver();
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698