[GCM] Add ConnectionListener support, and hook up to debug page
commitc31e1b5760f1204835d782a0249d595416b04b78
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 21:00:47 +0000 (12 21:00 +0000)
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 21:00:47 +0000 (12 21:00 +0000)
treee49405d3328ff200970ddce7e6d5b744fbd3cd8f
parent0ec86f59706a0870ea91248a63ec10ad496398ed
[GCM] Add ConnectionListener support, and hook up to debug page

The ConnectionFactory::ConnectionListener gets informed of connection events,
including the actual ip endpoint with which a connection was established. This
will eventually be hooked up to app handlers to allow services to act on
connection changes. For now it just allows the debug page to more accurately
reflect the connection state.

BUG=377882

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276800 0039d316-1c4b-4281-b951-d872f2087c98
components/gcm_driver/gcm_client_impl.cc
components/gcm_driver/gcm_client_impl.h
google_apis/gcm/engine/connection_factory.cc
google_apis/gcm/engine/connection_factory.h
google_apis/gcm/engine/connection_factory_impl.cc
google_apis/gcm/engine/connection_factory_impl.h
google_apis/gcm/engine/connection_factory_impl_unittest.cc
google_apis/gcm/engine/fake_connection_factory.cc
google_apis/gcm/engine/fake_connection_factory.h