OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_METRICS_H_ |
| 6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_METRICS_H_ |
| 7 |
| 8 namespace browser_watcher { |
| 9 |
| 10 // DO NOT REMOVE OR REORDER VALUES. This is logged persistently in a histogram. |
| 11 enum class CollectOnCrashEvent { |
| 12 kCollectAttempt, |
| 13 kUserDataDirNotEmpty, |
| 14 kPathExists, |
| 15 kReportExtractionSuccess, |
| 16 kPmaSetDeletedFailed, |
| 17 kOpenForDeleteFailed, |
| 18 kSuccess, |
| 19 // New values go here. |
| 20 kCollectOnCrashEventMax |
| 21 }; |
| 22 |
| 23 // DO NOT REMOVE OR REORDER VALUES. This is logged persistently in a histogram. |
| 24 enum class StabilityRecordEvent { |
| 25 kRecordAttempt, |
| 26 kStabilityDirectoryExists, |
| 27 kGotStabilityPath, |
| 28 kGotTracker, |
| 29 kMarkDeleted, |
| 30 kMarkDeletedGotFile, |
| 31 kOpenForDeleteFailed, |
| 32 // New values go here. |
| 33 kStabilityRecordEventMax |
| 34 }; |
| 35 |
| 36 void LogCollectOnCrashEvent(CollectOnCrashEvent event); |
| 37 void LogStabilityRecordEvent(StabilityRecordEvent event); |
| 38 |
| 39 } // namespace browser_watcher |
| 40 |
| 41 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_METRICS_H_ |
OLD | NEW |