Add pre and post binding processing hooks |
||||
Issue descriptionFor mus we want the ability to do processing both before and after every incoming message. Ideally there would be an interface we can supply to the bindings object that is called before and after every message, e.g.: void OnWillProcessMessage(); void OnDidProcessMessage(); We don't need to know the message or alter it, just the before and after calls.
,
Jun 2 2017
Ah, I realize that you probably want guarantee that for each OnWillProcessMessage there is exactly one OnDidProcessMessage. (Right?) If that is the case, Binding::AddFilter may not be the best choice. Filters could cancel message dispatching. So it is possible to cause mismatch if we use a filter as OnWillProcessMessage (and invent some other way to observe OnDidProcessMessage).
,
Jun 2 2017
That's right. This interface would have to be called after MessageReceivers.
,
Oct 17
,
Dec 4
sky@: is this still relevant?
,
Dec 11
The reason I wanted this doesn't really apply anymore. Closing. |
||||
►
Sign in to add a comment |
||||
Comment 1 by yzshen@chromium.org
, Jun 2 2017