| Index: components/gcm_driver/gcm_client.h
|
| diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h
|
| index 10f9a995f909d823c16d0f40e9ef7bee6703e20f..34db163a607c71f7ab8924a1c61e27761fd7f9ac 100644
|
| --- a/components/gcm_driver/gcm_client.h
|
| +++ b/components/gcm_driver/gcm_client.h
|
| @@ -15,12 +15,15 @@
|
|
|
| template <class T> class scoped_refptr;
|
|
|
| +class GURL;
|
| +
|
| namespace base {
|
| class FilePath;
|
| class SequencedTaskRunner;
|
| }
|
|
|
| namespace net {
|
| +class IPEndPoint;
|
| class URLRequestContextGetter;
|
| }
|
|
|
| @@ -189,6 +192,13 @@ class GCMClient {
|
| // Called when activities are being recorded and a new activity has just
|
| // been recorded.
|
| virtual void OnActivityRecorded() = 0;
|
| +
|
| + // Called when a new connection is established and a successful handshake
|
| + // has been performed.
|
| + virtual void OnConnected(const net::IPEndPoint& ip_endpoint) = 0;
|
| +
|
| + // Called when the connection is interrupted.
|
| + virtual void OnDisconnected() = 0;
|
| };
|
|
|
| GCMClient();
|
|
|