Refactor PushClientChannel
commit28935deb05428f98b1a051cd9ccb3c2c862a967b
authorpavely@chromium.org <pavely@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Dec 2013 12:45:18 +0000 (6 12:45 +0000)
committerpavely@chromium.org <pavely@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Dec 2013 12:45:18 +0000 (6 12:45 +0000)
tree06e3be8be06ac8ec40caa42d3c7fde06cb5dc38d
parentf014a54142c818aaa35a5c7c99e5bbdc3016c8ef
Refactor PushClientChannel

Move code responsible for working with invalidations library out of
PushClientChannel into SyncNetworkChannel. PushClientChannel only has
code related to PushClient.

Create PushClient independent SyncNetworkChannel::Observer interface and
make SyncInvalidationListener observe it instead of PushClientObserver.

Move ownership of PushClientChannel from SyncSystemResources to
SyncInvalidationListener.

Tests for PushClientChannel are still in push_client_channel_unittest.cc.
I'll split those in subsequent patch.

BUG=325020

Review URL: https://codereview.chromium.org/103223004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239176 0039d316-1c4b-4281-b951-d872f2087c98
sync/notifier/push_client_channel.cc
sync/notifier/push_client_channel.h
sync/notifier/push_client_channel_unittest.cc
sync/notifier/sync_invalidation_listener.cc
sync/notifier/sync_invalidation_listener.h
sync/notifier/sync_system_resources.cc
sync/notifier/sync_system_resources.h
sync/notifier/sync_system_resources_unittest.cc