|
Allows the about:sync page to present the last six network events as
soon as it's opened.
Adds the ProtocolEventBuffer to the SyncManagerImpl. This class holds
on to a few protocol events and returns them on demand.
Modifies the interface to enable SyncBacknedHost protocol event
forwarding. By default, it does not forward any events. There are now
separate registration and unregistration functions. The registration
function will send the set of buffered notifications to the UI thread,
and also register it to receive incoming events in the future. It
continues to forward events until the number of registration calls is
matched by the number of un-registration calls.
Makes about:sync's registration to receive events explicit. This was
a long-time TODO. If we did not fix this issue, then the about:sync
page could receive the initial set of buffered invalidations before it
had its event listeners defined and registered.
Makes the about:sync page keep track of known events and avoid adding
duplicates to the list. Since the registration of a new event listener
causes events to be distributed to all listeners, we must add this logic
to ensure that opening one new about:sync tab will not cause previously
opened tabs to display duplicate events.
BUG=329373,349301
Review URL: https://codereview.chromium.org/212603007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260726 0039d316-1c4b-4281-b951-d872f2087c98
|