| OLD | NEW |
| 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; |
| 11 option java_outer_classname = "SystemProfileProtos"; | 11 option java_outer_classname = "SystemProfileProtos"; |
| 12 option java_package = "org.chromium.components.metrics"; | 12 option java_package = "org.chromium.components.metrics"; |
| 13 | 13 |
| 14 package metrics; | 14 package metrics; |
| 15 | 15 |
| 16 // Next tag: 23 | 16 // Next tag: 24 |
| 17 message SystemProfileProto { | 17 message SystemProfileProto { |
| 18 // The time when the client was compiled/linked, in seconds since the epoch. | 18 // The time when the client was compiled/linked, in seconds since the epoch. |
| 19 optional int64 build_timestamp = 1; | 19 optional int64 build_timestamp = 1; |
| 20 | 20 |
| 21 // A version number string for the application. | 21 // A version number string for the application. |
| 22 // Most commonly this is the browser version number found in a user agent | 22 // Most commonly this is the browser version number found in a user agent |
| 23 // string, and is typically a 4-tuple of numbers separated by periods. In | 23 // string, and is typically a 4-tuple of numbers separated by periods. In |
| 24 // cases where the user agent version might be ambiguous (example: Linux 64- | 24 // cases where the user agent version might be ambiguous (example: Linux 64- |
| 25 // bit build, rather than 32-bit build, or a Windows version used in some | 25 // bit build, rather than 32-bit build, or a Windows version used in some |
| 26 // special context, such as ChromeFrame running in IE), then this may include | 26 // special context, such as ChromeFrame running in IE), then this may include |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 // Specifically, whether the enable metrics/crash reporting checkbox that was | 766 // Specifically, whether the enable metrics/crash reporting checkbox that was |
| 767 // shown on first run was checked or unchecked by default. | 767 // shown on first run was checked or unchecked by default. |
| 768 // This state is recorded on first run, and uploaded in every UMA log. | 768 // This state is recorded on first run, and uploaded in every UMA log. |
| 769 // Consequently this should only be defined for clients that were installed | 769 // Consequently this should only be defined for clients that were installed |
| 770 // after the recording code was implemented. | 770 // after the recording code was implemented. |
| 771 enum UmaDefaultState { | 771 enum UmaDefaultState { |
| 772 // The enable checkbox was unchecked by default. | 772 // The enable checkbox was unchecked by default. |
| 773 OPT_IN = 0; | 773 OPT_IN = 0; |
| 774 // The enable checkbox was checked by default. | 774 // The enable checkbox was checked by default. |
| 775 OPT_OUT = 1; | 775 OPT_OUT = 1; |
| 776 // Policy mandated that UMA be enaled, the user had no choice. | 776 // Policy mandated that UMA be enabled, the user had no choice. |
| 777 POLICY_FORCED_ENABLED = 2; | 777 POLICY_FORCED_ENABLED = 2; |
| 778 } | 778 } |
| 779 optional UmaDefaultState uma_default_state = 22; | 779 optional UmaDefaultState uma_default_state = 22; |
| 780 |
| 781 enum AntiVirusState { |
| 782 // The security product software is turned on and protecting the user. |
| 783 STATE_ON = 0; |
| 784 // The security product software is turned off and protection is disabled. |
| 785 STATE_OFF = 1; |
| 786 // The security product software is in the snoozed state, temporarily off, |
| 787 // and not actively protecting the computer. |
| 788 STATE_SNOOZED = 2; |
| 789 // The security product software has expired and is no longer actively |
| 790 // protecting the computer. |
| 791 STATE_EXPIRED = 3; |
| 792 } |
| 793 |
| 794 // Information about AntiVirus products installed. |
| 795 // Next Tag: 6 |
| 796 message AntiVirusProduct { |
| 797 // The product name e.g. "System Center Endpoint Protection". This might not |
| 798 // be recorded, see ShouldReportFullNames() in |
| 799 // chrome/browser/metrics/antivirus_metrics_provider_win.cc. |
| 800 optional string product_name = 1; |
| 801 |
| 802 // The hash of the product name. |
| 803 optional fixed32 product_name_hash = 2; |
| 804 |
| 805 // The version of the product, as read from the file information. This might |
| 806 // not be recorded, see ShouldReportFullNames() in |
| 807 // chrome/browser/metrics/antivirus_metrics_provider_win.cc. |
| 808 optional string product_version = 3; |
| 809 |
| 810 // The hash of the product version. Might not be set if the product version |
| 811 // could not be obtained from the disk. |
| 812 optional fixed32 product_version_hash = 4; |
| 813 |
| 814 // The current state of the product. |
| 815 optional AntiVirusState product_state = 5; |
| 816 } |
| 817 repeated AntiVirusProduct antivirus_product = 23; |
| 780 } | 818 } |
| OLD | NEW |