Chromium Code Reviews| 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 ANDROID_WEBVIEW = 20; | |
|
Alexei Svitkine (slow)
2016/01/13 22:37:27
Nit: Add a blank line above it and a comment after
paulmiller
2016/01/13 22:44:08
Done.
| |
| 30 } | 31 } |
| 31 // The product corresponding to this log. The field type is int32 instead of | 32 // 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 | 33 // Product so that downstream users of the Chromium metrics component can |
| 33 // introduce products without needing to make changes to the Chromium code | 34 // 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). | 35 // (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 | 36 // Note: The default value is Chrome, so Chrome products will not transmit |
| 36 // this field. | 37 // this field. |
| 37 optional int32 product = 10 [default = 0]; | 38 optional int32 product = 10 [default = 0]; |
| 38 | 39 |
| 39 // The id of the client install that generated these events. | 40 // The id of the client install that generated these events. |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 64 | 65 |
| 65 // This field is no longer used. Use |sampled_profile| instead. | 66 // This field is no longer used. Use |sampled_profile| instead. |
| 66 repeated PerfDataProto perf_data = 8 [deprecated=true]; | 67 repeated PerfDataProto perf_data = 8 [deprecated=true]; |
| 67 | 68 |
| 68 // A list of all collected sample-based profiles since the last UMA upload. | 69 // A list of all collected sample-based profiles since the last UMA upload. |
| 69 repeated SampledProfile sampled_profile = 11; | 70 repeated SampledProfile sampled_profile = 11; |
| 70 | 71 |
| 71 // Additional data related with Cast-enabled devices. | 72 // Additional data related with Cast-enabled devices. |
| 72 optional CastLogsProto cast_logs = 12; | 73 optional CastLogsProto cast_logs = 12; |
| 73 } | 74 } |
| OLD | NEW |