DescriptionClean up the Notification class in advance of merging the Close methods
- Moves from class to enum class for notification state and type.
- Notification instances now have clear knowledge of their type.
- Don't instantiate an AsyncMethodRunner for non-persistent ones.
- Simplify the lifetime of Notification instances: non-persistent
notifications now follow their state machine, whereas persistent
notifications now follow regular GC rules.
This will make it somewhat easier to merge the close{Persistent,}()
methods on the WebNotificationManager.
BUG=
Committed: https://crrev.com/c1e8be7b2f4b9d22ff8c596868ab9ed4e77dd956
Cr-Commit-Position: refs/heads/master@{#419183}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Clean up the Notification class in advance of merging the Close methods #
Total comments: 8
Patch Set 3 : Clean up the Notification class in advance of merging the Close methods #
Dependent Patchsets: Messages
Total messages: 16 (8 generated)
|