-
zijiehe authored
This change adds SessionPlugin interface, and an Session::AddPlugin() function to attach SessionPlugin instances into Session and its derived classes. In JingleSession, the plugins will be executed after receiving a message or before sending a message. So a SessionPlugin implementation can read fields from and write to a message. Refer to change https://codereview.chromium.org/2586133002/, it shows how HostExperimentSessionPlugin works as a SessionPlugin. This is part of host experiment framework. BUG=650926 Review-Url: https://codereview.chromium.org/2586403003 Cr-Commit-Position: refs/heads/master@{#441003}
cf233ee7