| 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package variations; | 9 package variations; |
| 10 | 10 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Possible form factors Chrome is running on. | 194 // Possible form factors Chrome is running on. |
| 195 enum FormFactor { | 195 enum FormFactor { |
| 196 DESKTOP = 0; | 196 DESKTOP = 0; |
| 197 PHONE = 1; | 197 PHONE = 1; |
| 198 TABLET = 2; | 198 TABLET = 2; |
| 199 } | 199 } |
| 200 | 200 |
| 201 // Filtering criteria specifying whether this study is applicable to a given | 201 // Filtering criteria specifying whether this study is applicable to a given |
| 202 // Chrome instance. | 202 // Chrome instance. |
| 203 // | 203 // |
| 204 // Next tag: 12 | 204 // Next tag: 13 |
| 205 message Filter { | 205 message Filter { |
| 206 // The start date of the study in Unix time format. (Seconds since midnight | 206 // The start date of the study in Unix time format. (Seconds since midnight |
| 207 // January 1, 1970 UTC). See: http://en.wikipedia.org/wiki/Unix_time | 207 // January 1, 1970 UTC). See: http://en.wikipedia.org/wiki/Unix_time |
| 208 // Ex: 1330893974 (corresponds to 2012-03-04 20:46:14Z) | 208 // Ex: 1330893974 (corresponds to 2012-03-04 20:46:14Z) |
| 209 optional int64 start_date = 1; | 209 optional int64 start_date = 1; |
| 210 | 210 |
| 211 // The minimum Chrome version for this study, allowing a trailing '*' | 211 // The minimum Chrome version for this study, allowing a trailing '*' |
| 212 // character for pattern matching. Inclusive. (To check for a match, iterate | 212 // character for pattern matching. Inclusive. (To check for a match, iterate |
| 213 // over each component checking >= until a * or end of string is reached.) | 213 // over each component checking >= until a * or end of string is reached.) |
| 214 // Optional - if not specified, there is no minimum version. | 214 // Optional - if not specified, there is no minimum version. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 226 // applies to all channels. | 226 // applies to all channels. |
| 227 // Ex: [BETA, STABLE] | 227 // Ex: [BETA, STABLE] |
| 228 repeated Channel channel = 4; | 228 repeated Channel channel = 4; |
| 229 | 229 |
| 230 // List of platforms that will receive this study. If omitted, the study | 230 // List of platforms that will receive this study. If omitted, the study |
| 231 // applies to all platforms. | 231 // applies to all platforms. |
| 232 // Ex: [PLATFORM_WINDOWS, PLATFORM_MAC] | 232 // Ex: [PLATFORM_WINDOWS, PLATFORM_MAC] |
| 233 repeated Platform platform = 5; | 233 repeated Platform platform = 5; |
| 234 | 234 |
| 235 // List of locales that will receive this study. If omitted, the study | 235 // List of locales that will receive this study. If omitted, the study |
| 236 // applies to all locales. | 236 // applies to all locales, unless |exclude_locale| is specified. Mutually |
| 237 // exclusive with |exclude_locale|. |
| 237 // Ex: ["en-US", "en-CA"] | 238 // Ex: ["en-US", "en-CA"] |
| 238 repeated string locale = 6; | 239 repeated string locale = 6; |
| 239 | 240 |
| 241 // List of locales that will be excluded from this study. If omitted, the |
| 242 // study applies to all locales unless |locale| is specified. Mutually |
| 243 // exclusive with |locale|. |
| 244 // Ex: ["en-US", "en-CA"] |
| 245 repeated string exclude_locale = 12; |
| 246 |
| 240 // List of form factors that will receive this study. If omitted, the study | 247 // List of form factors that will receive this study. If omitted, the study |
| 241 // applies to all form factors. | 248 // applies to all form factors. |
| 242 // Ex: [PHONE, TABLET] | 249 // Ex: [PHONE, TABLET] |
| 243 repeated FormFactor form_factor = 7; | 250 repeated FormFactor form_factor = 7; |
| 244 | 251 |
| 245 // List of ChromeOS hardware classes that will receive this study. Each | 252 // List of ChromeOS hardware classes that will receive this study. Each |
| 246 // entry is treated as a substring of the actual device hardware_class, | 253 // entry is treated as a substring of the actual device hardware_class, |
| 247 // so "FOO" will match the client's hardware class "Device FOOBAR". If | 254 // so "FOO" will match the client's hardware class "Device FOOBAR". If |
| 248 // omitted, the study applies to all hardware classes unless | 255 // omitted, the study applies to all hardware classes unless |
| 249 // |exclude_hardware_class| is specified. Mutually exclusive with | 256 // |exclude_hardware_class| is specified. Mutually exclusive with |
| (...skipping 11 matching lines...) Expand all Loading... |
| 261 repeated string exclude_hardware_class = 9; | 268 repeated string exclude_hardware_class = 9; |
| 262 | 269 |
| 263 // List of lowercase ISO 3166-1 alpha-2 country codes that will receive this | 270 // List of lowercase ISO 3166-1 alpha-2 country codes that will receive this |
| 264 // study. If omitted, the study applies to all countries unless | 271 // study. If omitted, the study applies to all countries unless |
| 265 // |exclude_country| is specified. Mutually exclusive with | 272 // |exclude_country| is specified. Mutually exclusive with |
| 266 // |exclude_country|. | 273 // |exclude_country|. |
| 267 // Ex: ["in", "us"] | 274 // Ex: ["in", "us"] |
| 268 repeated string country = 10; | 275 repeated string country = 10; |
| 269 | 276 |
| 270 // List of lowercase ISO 3166-1 alpha-2 country codes that will be excluded | 277 // List of lowercase ISO 3166-1 alpha-2 country codes that will be excluded |
| 271 // in this study. If omitted, the study applies to all countries unless | 278 // from this study. If omitted, the study applies to all countries unless |
| 272 // |country| is specified. Mutually exclusive with |country|. | 279 // |country| is specified. Mutually exclusive with |country|. |
| 273 // Ex: ["in", "us"] | 280 // Ex: ["in", "us"] |
| 274 repeated string exclude_country = 11; | 281 repeated string exclude_country = 11; |
| 275 } | 282 } |
| 276 | 283 |
| 277 // Filtering criteria for this study. A study that is filtered out for a given | 284 // Filtering criteria for this study. A study that is filtered out for a given |
| 278 // client is equivalent to that study not being sent at all. | 285 // client is equivalent to that study not being sent at all. |
| 279 optional Filter filter = 10; | 286 optional Filter filter = 10; |
| 280 | 287 |
| 281 // Randomization seed to be used when |consistency| is set to PERMANENT. If | 288 // Randomization seed to be used when |consistency| is set to PERMANENT. If |
| 282 // not specified, randomization will be done using the trial name. | 289 // not specified, randomization will be done using the trial name. |
| 283 optional uint32 randomization_seed = 11; | 290 optional uint32 randomization_seed = 11; |
| 284 | 291 |
| 285 // Specifies whether the study starts as active initially, or whether it | 292 // Specifies whether the study starts as active initially, or whether it |
| 286 // requires the client to query its state before it is marked as active. | 293 // requires the client to query its state before it is marked as active. |
| 287 enum ActivationType { | 294 enum ActivationType { |
| 288 // The study will be activated when its state is queried by the client. | 295 // The study will be activated when its state is queried by the client. |
| 289 // This is recommended for most studies that include client code. | 296 // This is recommended for most studies that include client code. |
| 290 ACTIVATION_EXPLICIT = 0; | 297 ACTIVATION_EXPLICIT = 0; |
| 291 // The study will be automatically activated when it is created. This | 298 // The study will be automatically activated when it is created. This |
| 292 // is recommended for studies that do not have any client logic. | 299 // is recommended for studies that do not have any client logic. |
| 293 ACTIVATION_AUTO = 1; | 300 ACTIVATION_AUTO = 1; |
| 294 } | 301 } |
| 295 | 302 |
| 296 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. | 303 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. |
| 297 optional ActivationType activation_type = 12; | 304 optional ActivationType activation_type = 12; |
| 298 } | 305 } |
| OLD | NEW |