VmCameraMicManager: Move notification controlling logic into VmInfo
This CL does not change the logic, but moves notification controlling logic into VmInfo. The reason is that we are going to implement some notification debounce logic into each VmInfo. This makes thing a bit simpler. It also merges `VmNotificationObserver` into `VmInfo` because we don't really need a separate class. A few notes: * `vm_info_map_`'s type is changed from `base::flat_map` to `std::map` because VmInfo is not copyable now. * VmCameraMicManager::{Open,Close}Notification() is moved into `VmInfo` with only some trivial changes. Bug: b/167491603 Change-Id: Ib41f68c67887e71563b90aeda37ef54ee60b1138 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2641827 Commit-Queue: Jason Lin <lxj@google.com> Reviewed-by:Joel Hockey <joelhockey@chromium.org> Cr-Commit-Position: refs/heads/master@{#846029}
Showing
Please register or sign in to comment