OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Stores information about the user's brower and system configuration. | 5 // Stores information about the user's brower and system configuration. |
6 // The system configuration fields are recorded once per client session. | 6 // The system configuration fields are recorded once per client session. |
7 | 7 |
8 syntax = "proto2"; | 8 syntax = "proto2"; |
9 | 9 |
10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
11 | 11 |
12 package metrics; | 12 package metrics; |
13 | 13 |
14 // Next tag: 12 | 14 // Next tag: 13 |
Ilya Sherman
2013/01/26 00:49:00
nit: Please bump this one further and use 13 for y
szym
2013/01/28 18:16:25
Done.
| |
15 message SystemProfileProto { | 15 message SystemProfileProto { |
16 // The time when the client was compiled/linked, in seconds since the epoch. | 16 // The time when the client was compiled/linked, in seconds since the epoch. |
17 optional int64 build_timestamp = 1; | 17 optional int64 build_timestamp = 1; |
18 | 18 |
19 // A version number string for the application. | 19 // A version number string for the application. |
20 // Most commonly this is the browser version number found in a user agent | 20 // Most commonly this is the browser version number found in a user agent |
21 // string, and is typically a 4-tuple of numbers separated by periods. In | 21 // string, and is typically a 4-tuple of numbers separated by periods. In |
22 // cases where the user agent version might be ambiguous (example: Linux 64- | 22 // cases where the user agent version might be ambiguous (example: Linux 64- |
23 // bit build, rather than 32-bit build, or a Windows version used in some | 23 // bit build, rather than 32-bit build, or a Windows version used in some |
24 // special context, such as ChromeFrame running in IE), then this may include | 24 // special context, such as ChromeFrame running in IE), then this may include |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 optional string gl_vendor = 6; | 140 optional string gl_vendor = 6; |
141 | 141 |
142 // The GL_RENDERER string. An example of a gl_renderer string is | 142 // The GL_RENDERER string. An example of a gl_renderer string is |
143 // "PowerVR SGX 540". "" if we are not using OpenGL. | 143 // "PowerVR SGX 540". "" if we are not using OpenGL. |
144 optional string gl_renderer = 7; | 144 optional string gl_renderer = 7; |
145 } | 145 } |
146 optional Graphics gpu = 8; | 146 optional Graphics gpu = 8; |
147 } | 147 } |
148 optional Hardware hardware = 6; | 148 optional Hardware hardware = 6; |
149 | 149 |
150 // Information about the network connection. | |
151 message Network { | |
152 // Set to true if there was a network change during the lifetime of the log. | |
153 optional bool is_ambiguous = 1; | |
Ilya Sherman
2013/01/26 00:49:00
nit: Perhaps name this "connection_type_is_ambiguo
szym
2013/01/28 18:16:25
Good point. I wanted to have one such flag for all
| |
154 | |
155 // See net::NetworkChangeNotifier::ConnectionType. | |
Ilya Sherman
2013/01/26 00:49:00
nit: IMO it would be better to copy the short comm
szym
2013/01/28 18:16:25
That link in that other comment is out of date. Th
| |
156 enum ConnectionType { | |
157 CONNECTION_UNKNOWN = 0; | |
158 CONNECTION_ETHERNET = 1; | |
159 CONNECTION_WIFI = 2; | |
160 CONNECTION_2G = 3; | |
161 CONNECTION_3G = 4; | |
162 CONNECTION_4G = 5; | |
163 } | |
164 optional ConnectionType connection_type = 2; | |
165 } | |
166 optional Network network = 12; | |
167 | |
150 // Information on the Google Update install that is managing this client. | 168 // Information on the Google Update install that is managing this client. |
151 message GoogleUpdate { | 169 message GoogleUpdate { |
152 // Whether the Google Update install is system-level or user-level. | 170 // Whether the Google Update install is system-level or user-level. |
153 optional bool is_system_install = 1; | 171 optional bool is_system_install = 1; |
154 | 172 |
155 // The date at which Google Update last started performing an automatic | 173 // The date at which Google Update last started performing an automatic |
156 // update check, in seconds since the Unix epoch. | 174 // update check, in seconds since the Unix epoch. |
157 optional int64 last_automatic_start_timestamp = 2; | 175 optional int64 last_automatic_start_timestamp = 2; |
158 | 176 |
159 // The date at which Google Update last successfully sent an update check | 177 // The date at which Google Update last successfully sent an update check |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 // The name of the field trial, as a 32-bit identifier. | 336 // The name of the field trial, as a 32-bit identifier. |
319 // Currently, the identifier is a hash of the field trial's name. | 337 // Currently, the identifier is a hash of the field trial's name. |
320 optional fixed32 name_id = 1; | 338 optional fixed32 name_id = 1; |
321 | 339 |
322 // The user's group within the field trial, as a 32-bit identifier. | 340 // The user's group within the field trial, as a 32-bit identifier. |
323 // Currently, the identifier is a hash of the group's name. | 341 // Currently, the identifier is a hash of the group's name. |
324 optional fixed32 group_id = 2; | 342 optional fixed32 group_id = 2; |
325 } | 343 } |
326 repeated FieldTrial field_trial = 9; | 344 repeated FieldTrial field_trial = 9; |
327 } | 345 } |
OLD | NEW |