[ios] Add will/did CloseAllWebStates to WebStateListObserver
This CL adds |-willCloseAllWebStates()| and |-didCloseAllWebStates()| to the WebStateListObserver. This allows observers to know when CloseAll has been called. This gives observers ability to batch process operations instead of processing each close individually. This CL will be quickly followed up with the first use case -- RecentTabs. In RecentTabs, the close all operation should be batched instead of being processed one at a time, which causes a UI freeze. Bug: 994229 Change-Id: I9dd47786c508409690e4a753593505d5da71d11b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1854463 Commit-Queue: edchin <edchin@chromium.org> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:
edchin <edchin@chromium.org> Reviewed-by:
Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#705571}
Showing
Please register or sign in to comment