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

Unified Diff: components/gcm_driver/gcm_client.h

Issue 745123002: Link GCM heartbeat with wake on wifi preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make GCM wake from suspend aware Created 6 years 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_client.h
diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h
index 9956c1003e93e3125866b2f2c0eb5fc8a126af53..87c1134e2617482cf322be7e416d986b32494735 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -31,6 +31,7 @@ namespace gcm {
class Encryptor;
struct AccountMapping;
+class MCSClient;
// Interface that encapsulates the network communications with the Google Cloud
// Messaging server. This interface is not supposed to be thread-safe.
@@ -299,6 +300,10 @@ class GCMClient {
// Sets last token fetch time in persistent store.
virtual void SetLastTokenFetchTime(const base::Time& time) = 0;
+
+ // Gets the MCSClient associated with this GCMClient or NULL if one does not
+ // exist yet.
+ virtual MCSClient* GetMCSClient() const = 0;
Nicolas Zea 2014/12/05 00:53:04 I'm not a fan of exposing all the logic of MCSClie
Chirantan Ekbote 2014/12/05 21:49:05 Done.
};
} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698