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

Unified Diff: components/gcm_driver/gcm_driver.h

Issue 320993003: [GCM] Add app handler support for connection events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add basic tests 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
Index: components/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index e2fe882532c28d68fd2494c96387cebb949af421..a215abddf6ce6f67e87379baa191c95d9c84931e 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -86,6 +86,9 @@ class GCMDriver {
// Returns true if the gcm client is ready.
virtual bool IsGCMClientReady() const = 0;
+ // Returns true if the gcm client has an open and active connection.
+ virtual bool IsConnected() const = 0;
+
// Get GCM client internal states and statistics.
// If clear_logs is true then activity logs will be cleared before the stats
// are returned.

Powered by Google App Engine
This is Rietveld 408576698