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
tree: 590a2b7a2d3d7b60b3596e07d73c2f9e3b45a941
  1. third_party/