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

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

Issue 2605553002: Add EffectiveConnectionType enum to the system profile proto (Closed)
Patch Set: Rebased Created 3 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
« no previous file with comments | « components/metrics/net/network_metrics_provider_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 optional bool has_seek_penalty = 1; 274 optional bool has_seek_penalty = 1;
275 } 275 }
276 // The drive that the application executable was loaded from. 276 // The drive that the application executable was loaded from.
277 optional Drive app_drive = 16; 277 optional Drive app_drive = 16;
278 // The drive that the current user data directory was loaded from. 278 // The drive that the current user data directory was loaded from.
279 optional Drive user_data_drive = 17; 279 optional Drive user_data_drive = 17;
280 } 280 }
281 optional Hardware hardware = 6; 281 optional Hardware hardware = 6;
282 282
283 // Information about the network connection. 283 // Information about the network connection.
284 // Next tag: 7
284 message Network { 285 message Network {
285 // Set to true if connection_type changed during the lifetime of the log. 286 // Set to true if connection_type changed during the lifetime of the log.
286 optional bool connection_type_is_ambiguous = 1; 287 optional bool connection_type_is_ambiguous = 1;
287 288
288 // Derived from net::NetworkChangeNotifier::ConnectionType translated 289 // Derived from net::NetworkChangeNotifier::ConnectionType translated
289 // through NetworkMetricsProvider::GetConnectionType. 290 // through NetworkMetricsProvider::GetConnectionType.
290 enum ConnectionType { 291 enum ConnectionType {
291 CONNECTION_UNKNOWN = 0; 292 CONNECTION_UNKNOWN = 0;
292 CONNECTION_ETHERNET = 1; 293 CONNECTION_ETHERNET = 1;
293 CONNECTION_WIFI = 2; 294 CONNECTION_WIFI = 2;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Identifiers). These are provided by the vendor through WPS 360 // Identifiers). These are provided by the vendor through WPS
360 // (Wireless Provisioning Service) information elements, which 361 // (Wireless Provisioning Service) information elements, which
361 // identifies the content of the element. 362 // identifies the content of the element.
362 repeated uint32 element_identifier = 4; 363 repeated uint32 element_identifier = 4;
363 } 364 }
364 // The wireless access point vendor information. 365 // The wireless access point vendor information.
365 optional VendorInformation vendor_info = 3; 366 optional VendorInformation vendor_info = 3;
366 } 367 }
367 // Information of the wireless AP that device is connected to. 368 // Information of the wireless AP that device is connected to.
368 optional WifiAccessPoint access_point_info = 5; 369 optional WifiAccessPoint access_point_info = 5;
370
371 // Derived from net::NetworkQualityEstimator::EffectiveConnectionType
372 // translated through NetworkMetricsProvider::GetConnectionType.
373 enum EffectiveConnectionType {
374 EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0;
375 // Specifies that the connection_type changed during the lifetime of the
376 // log.
377 EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS = 1;
378 EFFECTIVE_CONNECTION_TYPE_OFFLINE = 2;
379 EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 3;
380 EFFECTIVE_CONNECTION_TYPE_2G = 4;
381 EFFECTIVE_CONNECTION_TYPE_3G = 5;
382 EFFECTIVE_CONNECTION_TYPE_4G = 6;
383 }
384 // The connection type according to net::NetworkQualityEstimator.
385 // EffectiveConnectionType is the connection type whose typical performance
386 // is most similar to the measured performance of the network in use. In
387 // many cases, the "effective" connection type and the actual type of
388 // connection in use are the same, but often a network connection performs
389 // significantly differently, usually worse, from its expected capabilities.
390 optional EffectiveConnectionType effective_connection_type = 6;
369 } 391 }
370 optional Network network = 13; 392 optional Network network = 13;
371 393
372 // Information on the Google Update install that is managing this client. 394 // Information on the Google Update install that is managing this client.
373 message GoogleUpdate { 395 message GoogleUpdate {
374 // Whether the Google Update install is system-level or user-level. 396 // Whether the Google Update install is system-level or user-level.
375 optional bool is_system_install = 1; 397 optional bool is_system_install = 1;
376 398
377 // The date at which Google Update last started performing an automatic 399 // The date at which Google Update last started performing an automatic
378 // update check, in seconds since the Unix epoch. 400 // update check, in seconds since the Unix epoch.
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 876
855 // The hash of the product version. Might not be set if the product version 877 // The hash of the product version. Might not be set if the product version
856 // could not be obtained from the disk. 878 // could not be obtained from the disk.
857 optional fixed32 product_version_hash = 4; 879 optional fixed32 product_version_hash = 4;
858 880
859 // The current state of the product. 881 // The current state of the product.
860 optional AntiVirusState product_state = 5; 882 optional AntiVirusState product_state = 5;
861 } 883 }
862 repeated AntiVirusProduct antivirus_product = 23; 884 repeated AntiVirusProduct antivirus_product = 23;
863 } 885 }
OLDNEW
« no previous file with comments | « components/metrics/net/network_metrics_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698