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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.h

Issue 183013007: [GCM] Stop/restart GCM when the state is forced off/on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 6 years, 10 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 | « chrome/browser/services/gcm/gcm_client_mock.cc ('k') | chrome/browser/services/gcm/gcm_profile_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/gcm_profile_service.h
diff --git a/chrome/browser/services/gcm/gcm_profile_service.h b/chrome/browser/services/gcm/gcm_profile_service.h
index a516d710c221b435ef35a4b3d2460d3a87abcc92..6f53ffaae45cbfaf04aa1f7050b945a4b389a903 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.h
+++ b/chrome/browser/services/gcm/gcm_profile_service.h
@@ -74,6 +74,10 @@ class GCMProfileService : public BrowserContextKeyedService,
void Initialize(scoped_ptr<GCMClientFactory> gcm_client_factory);
+ void Start();
+
+ void Stop();
+
// Registers |sender_id| for an app. A registration ID will be returned by
// the GCM server.
// |app_id|: application ID.
@@ -128,6 +132,10 @@ class GCMProfileService : public BrowserContextKeyedService,
// the profile was signed in.
void EnsureLoaded();
+ // Remove cached or persisted data when GCM service is stopped.
+ void RemoveCachedData();
+ void RemovePersistedData();
+
// Checks out of GCM when the profile has been signed out. This will erase
// all the cached and persisted data.
void CheckOut();
« no previous file with comments | « chrome/browser/services/gcm/gcm_client_mock.cc ('k') | chrome/browser/services/gcm/gcm_profile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698