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
Review URL: https://codereview.chromium.org/1017313002
git-svn-id: svn://svn.chromium.org/blink/trunk@192231 bbb929c8-8fbe-4397-9dbb-9b2b20218538
20 files changed