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

Unified Diff: google_apis/gcm/gcm_client.h

Issue 184273011: Merge 253787 "[GCM] Make sure GCM checkout logic is invoked when..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: 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 | « google_apis/gcm/engine/mcs_client.cc ('k') | google_apis/gcm/gcm_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/gcm_client.h
===================================================================
--- google_apis/gcm/gcm_client.h (revision 255183)
+++ google_apis/gcm/gcm_client.h (working copy)
@@ -132,7 +132,8 @@
GCMClient();
virtual ~GCMClient();
- // Begins initialization of the GCM Client.
+ // Begins initialization of the GCM Client. This will not trigger a
+ // connection.
// |chrome_build_proto|: chrome info, i.e., version, channel and etc.
// |store_path|: path to the GCM store.
// |blocking_task_runner|: for running blocking file tasks.
@@ -147,6 +148,10 @@
url_request_context_getter,
Delegate* delegate) = 0;
+ // Loads the data from the persistent store. This will automatically kick off
+ // the check-in if the check-in info is not found in the store.
+ virtual void Load() = 0;
+
// Checks out of the GCM service. This will erase all the cached and persisted
// data.
virtual void CheckOut() = 0;
@@ -176,9 +181,6 @@
virtual void Send(const std::string& app_id,
const std::string& receiver_id,
const OutgoingMessage& message) = 0;
-
- // Returns true if GCM becomes ready.
- virtual bool IsReady() const = 0;
};
} // namespace gcm
« no previous file with comments | « google_apis/gcm/engine/mcs_client.cc ('k') | google_apis/gcm/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698