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

Side by Side Diff: google_apis/gcm/protocol/android_checkin.proto

Issue 98173009: GCM Checkin implementation with unit tests and protobufs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-store
Patch Set: Renaming fields, class names and files, updating gyp file. Created 6 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Logging information for Android "checkin" events (automatic, periodic
6 // requests made by Android devices to the server).
7
8 syntax = "proto2";
9
10 option optimize_for = LITE_RUNTIME;
11 option retain_unknown_fields = true;
12 package checkin_proto;
13
14 // Build characteristics unique to the Chrome browser, and Chrome OS
15 message ChromeBuildProto {
16 enum Platform {
17 PLATFORM_WIN = 1;
18 PLATFORM_MAC = 2;
19 PLATFORM_LINUX = 3;
20 PLATFORM_CROS = 4;
21 PLATFORM_IOS = 5;
22 // Just a placeholder. Likely don't need it due to the presence of the
23 // Android GCM on phone/tablet devices.
24 PLATFORM_ANDROID = 6;
25 }
26
27 enum Channel {
28 CHANNEL_STABLE = 1;
29 CHANNEL_BETA = 2;
30 CHANNEL_DEV = 3;
31 CHANNEL_CANARY = 4;
32 CHANNEL_UNKNOWN = 5; // for tip of tree or custom builds
33 }
34
35 // The platform of the device.
36 optional Platform platform = 1;
37
38 // The Chrome instance's version.
39 optional string chrome_version = 2;
40
41 // The Channel (build type) of Chrome.
42 optional Channel channel = 3;
43 }
44
45 // Information sent by the device in a "checkin" request.
46 message AndroidCheckinProto {
47 // NOTE: the device identifier is in GwsLog.UserInfo.AndroidID, not here.
48 // optional android.AndroidBuildProto build = 1;
Nicolas Zea 2014/01/07 00:41:52 I think we should go ahead and clean up all these
fgorski 2014/01/07 23:46:44 Done.
49
50 // For devices running MCS on IOS, build-specific characteristics of
51 // the MCS library version number and the underlying OS/hardware details.
52 // This will only be populated for IOS devices
53 // optional android.IOSBuildProto iosBuild = 11;
54
55 // Miliseconds since the Unix epoch of the device's last successful checkin.
56 optional int64 last_checkin_msec = 2;
57
58 // Requested group membership (may not be honored depending on policy).
59 // See AndroidExtension.assigned_group for the actual membership we assign.
60 // repeated string requested_group = 5;
61
62 // Events and statistics are collected since that last successful checkin.
63 // repeated android.AndroidEventProto event = 3;
64 // repeated android.AndroidStatisticProto stat = 4;
65
66 // The current MCC+MNC of the mobile device's current cell.
67 optional string cell_operator = 6;
68
69 // The MCC+MNC of the SIM card (different from operator if the
70 // device is roaming, for instance).
71 optional string sim_operator = 7;
72
73 // The device's current roaming state (reported starting in eclair builds).
74 // Currently one of "{,not}mobile-{,not}roaming", if it is present at all.
75 optional string roaming = 8;
76
77 // For devices supporting multiple user profiles (which may be
78 // supported starting in jellybean), the ordinal number of the
79 // profile that is checking in. This is 0 for the primary profile
80 // (which can't be changed without wiping the device), and 1,2,3,...
81 // for additional profiles (which can be added and deleted freely).
82 optional int32 user_number = 9;
83
84 // Class of device. Indicates the type of build proto
85 // (IosBuildProto/ChromeBuildProto/AndroidBuildProto)
86 // That is included in this proto
87 optional DeviceType type = 12 [default = DEVICE_ANDROID_OS];
88
89 // For devices running MCS on Chrome, build-specific characteristics
90 // of the browser. There are no hardware aspects (except for ChromeOS).
91 // This will only be populated for Chrome builds/ChromeOS devices
92 optional checkin_proto.ChromeBuildProto chrome_build = 13;
93
94 // Note: 10 was skipped due to a few devices incorrectly using the field
95 // before it was first used.
96 // Next 14
97 }
98
99 // enum values correspond to the type of device.
100 // Used in the AndroidCheckinProto and Device proto.
101 enum DeviceType {
102 // Android Device
103 DEVICE_ANDROID_OS = 1;
104
105 // Apple IOS device
106 DEVICE_IOS_OS = 2;
107
108 // Chrome browser - Not Chrome OS. No hardware records.
109 DEVICE_CHROME_BROWSER = 3;
110
111 // Chrome OS
112 DEVICE_CHROME_OS = 4;
113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698