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

Issue 1017313002: Simplify handling of LocalFrame lifecycle notifications. (Closed)

Created:
5 years, 9 months ago by sof
Modified:
5 years, 9 months ago
Reviewers:
haraken, oilpan-reviews
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Simplify handling of LocalFrame lifecycle notifications. LocalFrame provides a registration interface for observers to observe its detachment and destruction, by way of FrameDestructionObserver. Just like the derived objects of LifecycleNotifier<> do, hence it makes sense for LocalFrame to also use that interface and implementation. Done so here by introducing LocalFrameLifecycleNotifier<>. On the observer side, the FrameDestructionObserver interface now derives from LifecycleObserver<>, reusing its implementation. Instead of canonicalizing its name as LocalFrameLifecycleObserver also, keep the established FrameDestructionObserver. R=haraken BUG=462949 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192231

Patch Set 1 #

Patch Set 2 : drop ~LifecycleObserver with Oilpan #

Patch Set 3 : msvc compile fix #

Patch Set 4 : rebased #

Patch Set 5 : tight type dependencies..blind compilation fix #

Patch Set 6 : clear context on FDO::contextDestroyed() #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -109 lines) Patch
M Source/core/core.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/ContextLifecycleObserver.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/ContextLifecycleObserver.cpp View 1 chunk +1 line, -6 lines 0 comments Download
M Source/core/dom/DocumentLifecycleObserver.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/DocumentLifecycleObserver.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/frame/DOMWindowLifecycleObserver.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/DOMWindowLifecycleObserver.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/frame/FrameDestructionObserver.h View 1 2 3 4 5 1 chunk +9 lines, -14 lines 2 comments Download
M Source/core/frame/FrameDestructionObserver.cpp View 2 chunks +1 line, -30 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 5 chunks +3 lines, -6 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 chunks +3 lines, -18 lines 2 comments Download
A Source/core/frame/LocalFrameLifecycleNotifier.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A Source/core/frame/LocalFrameLifecycleNotifier.cpp View 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/page/PageLifecycleObserver.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/page/PageLifecycleObserver.cpp View 1 chunk +0 lines, -10 lines 1 comment Download
M Source/modules/storage/StorageArea.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/LifecycleContextTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/LifecycleObserver.h View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
sof
please take a look. i _think_ this is the final Lifecycle* related change for the ...
5 years, 9 months ago (2015-03-19 22:05:54 UTC) #2
haraken
Thanks for doing this! LGTM. https://codereview.chromium.org/1017313002/diff/100001/Source/core/frame/FrameDestructionObserver.h File Source/core/frame/FrameDestructionObserver.h (right): https://codereview.chromium.org/1017313002/diff/100001/Source/core/frame/FrameDestructionObserver.h#newcode38 Source/core/frame/FrameDestructionObserver.h:38: class FrameDestructionObserver : public ...
5 years, 9 months ago (2015-03-19 23:42:00 UTC) #3
sof
https://codereview.chromium.org/1017313002/diff/100001/Source/core/frame/FrameDestructionObserver.h File Source/core/frame/FrameDestructionObserver.h (right): https://codereview.chromium.org/1017313002/diff/100001/Source/core/frame/FrameDestructionObserver.h#newcode38 Source/core/frame/FrameDestructionObserver.h:38: class FrameDestructionObserver : public LifecycleObserver<LocalFrame, FrameDestructionObserver, LocalFrameLifecycleNotifier> { On ...
5 years, 9 months ago (2015-03-20 06:22:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017313002/100001
5 years, 9 months ago (2015-03-20 07:31:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017313002/100001
5 years, 9 months ago (2015-03-20 07:31:47 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 07:34:55 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192231

Powered by Google App Engine
This is Rietveld 408576698