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

Side by Side Diff: components/metrics/proto/system_profile.proto

Issue 2605553002: Add EffectiveConnectionType enum to the system profile proto (Closed)
Patch Set: Add tests Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Identifiers). These are provided by the vendor through WPS 359 // Identifiers). These are provided by the vendor through WPS
360 // (Wireless Provisioning Service) information elements, which 360 // (Wireless Provisioning Service) information elements, which
361 // identifies the content of the element. 361 // identifies the content of the element.
362 repeated uint32 element_identifier = 4; 362 repeated uint32 element_identifier = 4;
363 } 363 }
364 // The wireless access point vendor information. 364 // The wireless access point vendor information.
365 optional VendorInformation vendor_info = 3; 365 optional VendorInformation vendor_info = 3;
366 } 366 }
367 // Information of the wireless AP that device is connected to. 367 // Information of the wireless AP that device is connected to.
368 optional WifiAccessPoint access_point_info = 5; 368 optional WifiAccessPoint access_point_info = 5;
369
370 // Derived from net::NetworkQualityEstimator::EffectiveConnectionType
371 // translated through NetworkMetricsProvider::GetConnectionType.
372 enum EffectiveConnectionType {
373 EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0;
374 EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1;
375 EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2;
376 EFFECTIVE_CONNECTION_TYPE_2G = 3;
377 EFFECTIVE_CONNECTION_TYPE_3G = 4;
378 EFFECTIVE_CONNECTION_TYPE_4G = 5;
379 // Set to |EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS| true if connection_type
380 // changed during the lifetime of the log.
381 EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS = 6;
382 }
383 // The connection type according to net::NetworkQualityEstimator.
384 optional EffectiveConnectionType effective_connection_type = 6;
369 } 385 }
370 optional Network network = 13; 386 optional Network network = 13;
371 387
372 // Information on the Google Update install that is managing this client. 388 // Information on the Google Update install that is managing this client.
373 message GoogleUpdate { 389 message GoogleUpdate {
374 // Whether the Google Update install is system-level or user-level. 390 // Whether the Google Update install is system-level or user-level.
375 optional bool is_system_install = 1; 391 optional bool is_system_install = 1;
376 392
377 // The date at which Google Update last started performing an automatic 393 // The date at which Google Update last started performing an automatic
378 // update check, in seconds since the Unix epoch. 394 // update check, in seconds since the Unix epoch.
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 870
855 // The hash of the product version. Might not be set if the product version 871 // The hash of the product version. Might not be set if the product version
856 // could not be obtained from the disk. 872 // could not be obtained from the disk.
857 optional fixed32 product_version_hash = 4; 873 optional fixed32 product_version_hash = 4;
858 874
859 // The current state of the product. 875 // The current state of the product.
860 optional AntiVirusState product_state = 5; 876 optional AntiVirusState product_state = 5;
861 } 877 }
862 repeated AntiVirusProduct antivirus_product = 23; 878 repeated AntiVirusProduct antivirus_product = 23;
863 } 879 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698