Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1555)

Unified Diff: components/gcm_driver/gcm_client.h

Issue 320993003: [GCM] Add app handler support for connection events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/gcm_driver/gcm_app_handler.cc ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « components/gcm_driver/gcm_app_handler.cc ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698