Index: components/gcm_driver/gcm_client_impl.h |
diff --git a/components/gcm_driver/gcm_client_impl.h b/components/gcm_driver/gcm_client_impl.h |
index e74a8aa2b135578298b79bfdfd441d315fa09d03..464b707099638311cd1c6ae7942025e2587a1ee6 100644 |
--- a/components/gcm_driver/gcm_client_impl.h |
+++ b/components/gcm_driver/gcm_client_impl.h |
@@ -74,12 +74,13 @@ class GCMInternalsBuilder { |
// Checkins. It also allows for registering user delegates that host |
// applications that send and receive messages. |
class GCMClientImpl |
- : public GCMClient, public GCMStatsRecorder::Delegate { |
+ : public GCMClient, public GCMStatsRecorder::Delegate, |
+ public ConnectionFactory::ConnectionListener { |
public: |
explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder); |
virtual ~GCMClientImpl(); |
- // Overridden from GCMClient: |
+ // GCMClient implementation. |
virtual void Initialize( |
const ChromeBuildInfo& chrome_build_info, |
const base::FilePath& store_path, |
@@ -101,8 +102,15 @@ class GCMClientImpl |
virtual void SetRecording(bool recording) OVERRIDE; |
virtual void ClearActivityLogs() OVERRIDE; |
virtual GCMStatistics GetStatistics() const OVERRIDE; |
+ |
+ // GCMStatsRecorder::Delegate implemenation. |
virtual void OnActivityRecorded() OVERRIDE; |
+ // ConnectionFactory::ConnectionListener implementation. |
+ virtual void OnConnected(const GURL& current_server, |
+ const net::IPEndPoint& ip_endpoint) OVERRIDE; |
+ virtual void OnDisconnected() OVERRIDE; |
+ |
private: |
// State representation of the GCMClient. |
// Any change made to this enum should have corresponding change in the |