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

Unified Diff: google_apis/gcm/gcm_client.h

Issue 98173009: GCM Checkin implementation with unit tests and protobufs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-store
Patch Set: Adding protobufs, request/response implementation and unit tests Created 6 years, 12 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: google_apis/gcm/gcm_client.h
diff --git a/google_apis/gcm/gcm_client.h b/google_apis/gcm/gcm_client.h
index 4f391eba817fa86abe32d13264f4ad53f96a7302..b49462f32b180ace6e5819a75df32beac4bcc73f 100644
--- a/google_apis/gcm/gcm_client.h
+++ b/google_apis/gcm/gcm_client.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "google_apis/gcm/base/gcm_export.h"
+#include "google_apis/gcm/protocol/checkin.pb.h"
namespace base {
class TaskRunner;
@@ -76,6 +77,17 @@ class GCM_EXPORT GCMClient {
uint64 secret;
};
+ // The check-in info of Chrome build.
+ struct GCM_EXPORT ChromeCheckInInfo {
jianli 2014/01/04 01:34:10 ChromeCheckInInfo can be easily confused with Chec
fgorski 2014/01/06 20:34:12 Done.
+ ChromeCheckInInfo()
+ : platform(checkin_proto::ChromeBuildProto::PLATFORM_WIN),
+ channel(checkin_proto::ChromeBuildProto::CHANNEL_UNKNOWN) {}
+
+ checkin_proto::ChromeBuildProto_Platform platform;
+ checkin_proto::ChromeBuildProto_Channel channel;
+ std::string chrome_version;
+ };
+
// A delegate interface that allows the GCMClient instance to interact with
// its caller, i.e. notifying asynchronous event.
class Delegate {

Powered by Google App Engine
This is Rietveld 408576698