| 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 // Protocol buffer for Chrome UMA (User Metrics Analysis). | 5 // Protocol buffer for Chrome UMA (User Metrics Analysis). |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 option java_outer_classname = "ChromeUserMetricsExtensionProtos"; | 10 option java_outer_classname = "ChromeUserMetricsExtensionProtos"; |
| 11 option java_package = "org.chromium.components.metrics"; | 11 option java_package = "org.chromium.components.metrics"; |
| 12 | 12 |
| 13 package metrics; | 13 package metrics; |
| 14 | 14 |
| 15 import "cast_logs.proto"; | 15 import "cast_logs.proto"; |
| 16 import "histogram_event.proto"; | 16 import "histogram_event.proto"; |
| 17 import "omnibox_event.proto"; | 17 import "omnibox_event.proto"; |
| 18 import "profiler_event.proto"; | 18 import "profiler_event.proto"; |
| 19 import "system_profile.proto"; | 19 import "system_profile.proto"; |
| 20 import "user_action_event.proto"; | 20 import "user_action_event.proto"; |
| 21 import "perf_data.proto"; | 21 import "perf_data.proto"; |
| 22 import "sampled_profile.proto"; | 22 import "sampled_profile.proto"; |
| 23 | 23 |
| 24 // Next tag: 13 | 24 // Next tag: 13 |
| 25 message ChromeUserMetricsExtension { | 25 message ChromeUserMetricsExtension { |
| 26 // The product (i.e. end user application) for a given UMA log. | 26 // The product (i.e. end user application) for a given UMA log. |
| 27 enum Product { | 27 enum Product { |
| 28 // Google Chrome product family. | 28 // Google Chrome product family. |
| 29 CHROME = 0; | 29 CHROME = 0; |
| 30 |
| 31 // UMA metrics from Android Webview. |
| 32 ANDROID_WEBVIEW = 20; |
| 30 } | 33 } |
| 31 // The product corresponding to this log. The field type is int32 instead of | 34 // The product corresponding to this log. The field type is int32 instead of |
| 32 // Product so that downstream users of the Chromium metrics component can | 35 // Product so that downstream users of the Chromium metrics component can |
| 33 // introduce products without needing to make changes to the Chromium code | 36 // introduce products without needing to make changes to the Chromium code |
| 34 // (though they still need to add the new product to the server-side enum). | 37 // (though they still need to add the new product to the server-side enum). |
| 35 // Note: The default value is Chrome, so Chrome products will not transmit | 38 // Note: The default value is Chrome, so Chrome products will not transmit |
| 36 // this field. | 39 // this field. |
| 37 optional int32 product = 10 [default = 0]; | 40 optional int32 product = 10 [default = 0]; |
| 38 | 41 |
| 39 // The id of the client install that generated these events. | 42 // The id of the client install that generated these events. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 64 | 67 |
| 65 // This field is no longer used. Use |sampled_profile| instead. | 68 // This field is no longer used. Use |sampled_profile| instead. |
| 66 repeated PerfDataProto perf_data = 8 [deprecated=true]; | 69 repeated PerfDataProto perf_data = 8 [deprecated=true]; |
| 67 | 70 |
| 68 // A list of all collected sample-based profiles since the last UMA upload. | 71 // A list of all collected sample-based profiles since the last UMA upload. |
| 69 repeated SampledProfile sampled_profile = 11; | 72 repeated SampledProfile sampled_profile = 11; |
| 70 | 73 |
| 71 // Additional data related with Cast-enabled devices. | 74 // Additional data related with Cast-enabled devices. |
| 72 optional CastLogsProto cast_logs = 12; | 75 optional CastLogsProto cast_logs = 12; |
| 73 } | 76 } |
| OLD | NEW |