| Index: Source/core/page/PageLifecycleNotifier.h
|
| diff --git a/Source/core/page/PageLifecycleNotifier.h b/Source/core/page/PageLifecycleNotifier.h
|
| index 092760522d68eb89dc177922c10f469ee2c054ea..f57128c120c06347c7aa8cf2353df77b8e0cafb3 100644
|
| --- a/Source/core/page/PageLifecycleNotifier.h
|
| +++ b/Source/core/page/PageLifecycleNotifier.h
|
| @@ -34,12 +34,14 @@
|
| namespace WebCore {
|
|
|
| class Page;
|
| +class Frame;
|
|
|
| class PageLifecycleNotifier : public LifecycleNotifier {
|
| public:
|
| static PassOwnPtr<PageLifecycleNotifier> create(LifecycleContext*);
|
|
|
| void notifyPageVisibilityChanged();
|
| + void notifyDidCommitLoad(Frame*);
|
|
|
| virtual void addObserver(LifecycleObserver*, LifecycleObserver::Type) OVERRIDE;
|
| virtual void removeObserver(LifecycleObserver*, LifecycleObserver::Type) OVERRIDE;
|
| @@ -63,6 +65,13 @@ inline void PageLifecycleNotifier::notifyPageVisibilityChanged()
|
| (*it)->pageVisibilityChanged();
|
| }
|
|
|
| +inline void PageLifecycleNotifier::notifyDidCommitLoad(Frame* frame)
|
| +{
|
| + TemporaryChange<IterationType> scope(this->m_iterating, IteratingOverPageObservers);
|
| + for (PageObserverSet::iterator it = m_pageObservers.begin(); it != m_pageObservers.end(); ++it)
|
| + (*it)->didCommitLoad(frame);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // PageLifecycleNotifier_h
|
|
|