|
Simplify lifecycle notifiers and observers.
The following changes are made to the implementation of
lifecycle notifiers and observers:
- Avoid keeping duplicate hash sets of registered observers.
- Let the C++ type system handle type safety of the observer
set, letting go of the notion of an 'observer type' which
was dynamically checked for.
- Extend parameterization of LifecycleNotifier<> and
LifecycleObserver<> to more closely couple the notifier
and observer pairs. This allows the retirement of the
ad-hoc function templates {un}observeContext().
- Devirtualize the add/removeObserver() notifier methods.
R=haraken
BUG= 462949
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191062
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+168 lines, -263 lines) |
Patch |
|
M |
Source/core/dom/ContextLifecycleNotifier.h
|
View
|
|
1 chunk |
+7 lines, -8 lines |
4 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleNotifier.cpp
|
View
|
|
3 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleObserver.h
|
View
|
|
1 chunk |
+15 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleObserver.cpp
|
View
|
|
1 chunk |
+3 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleNotifier.h
|
View
|
|
1 chunk |
+4 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleNotifier.cpp
|
View
|
|
1 chunk |
+9 lines, -20 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleObserver.h
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleObserver.cpp
|
View
|
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ExecutionContext.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/DOMWindowLifecycleNotifier.h
|
View
|
|
1 chunk |
+5 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/DOMWindowLifecycleNotifier.cpp
|
View
|
|
1 chunk |
+14 lines, -24 lines |
1 comment
|
Download
|
|
M |
Source/core/frame/DOMWindowLifecycleObserver.h
|
View
|
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/DOMWindowLifecycleObserver.cpp
|
View
|
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/LocalDOMWindow.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/LocalDOMWindow.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/page/Page.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/page/PageLifecycleNotifier.h
|
View
|
|
2 chunks |
+4 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/page/PageLifecycleNotifier.cpp
|
View
|
|
1 chunk |
+11 lines, -21 lines |
0 comments
|
Download
|
|
M |
Source/core/page/PageLifecycleObserver.h
|
View
|
|
1 chunk |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/page/PageLifecycleObserver.cpp
|
View
|
|
1 chunk |
+2 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/platform/LifecycleContextTest.cpp
|
View
|
|
3 chunks |
+24 lines, -20 lines |
0 comments
|
Download
|
|
M |
Source/platform/LifecycleNotifier.h
|
View
|
|
4 chunks |
+22 lines, -24 lines |
2 comments
|
Download
|
|
M |
Source/platform/LifecycleObserver.h
|
View
|
|
2 chunks |
+9 lines, -26 lines |
0 comments
|
Download
|
Total messages: 10 (2 generated)
|