Chromium Code Reviews| 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 // Implementation of the collection of a stability file to a protocol buffer. | |
| 6 | |
| 7 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_IMPL_H_ | |
| 8 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_IMPL_H_ | |
| 9 | |
| 10 #include "base/files/file_path.h" | |
| 11 #include "components/browser_watcher/stability_report.pb.h" | |
| 12 | |
| 13 namespace browser_watcher { | |
| 14 namespace impl { | |
| 15 | |
| 16 // DO NOT CHANGE VALUES. This is logged persistently in a histogram. | |
| 17 enum CollectionStatus { | |
| 18 NONE = 0, | |
| 19 SUCCESS = 1, // Successfully registered a report with Crashpad. | |
| 20 ANALYZER_CREATION_FAILED = 2, | |
| 21 DEBUG_FILE_NO_DATA = 3, | |
| 22 PREPARE_NEW_CRASH_REPORT_FAILED = 4, | |
| 23 WRITE_TO_MINIDUMP_FAILED = 5, | |
| 24 DEBUG_FILE_DELETION_FAILED = 6, | |
| 25 FINISHED_WRITING_CRASH_REPORT_FAILED = 7, | |
| 26 COLLECTION_STATUS_MAX = 8 | |
| 27 }; | |
| 28 | |
| 29 // Collects a stability report from a stability file. | |
|
Sigurður Ásgeirsson
2017/03/01 20:50:30
Extracts?
Also, maybe you want to pass in the An
manzagop (departed)
2017/03/01 21:49:54
Done.
| |
| 30 CollectionStatus Collect(const base::FilePath& stability_file, | |
| 31 StabilityReport* report); | |
| 32 | |
| 33 } // namespace impl | |
| 34 } // namespace browser_watcher | |
| 35 | |
| 36 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_IMPL_H_ | |
| OLD | NEW |