| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Following an unclean shutdown, a stability report can be collected and | 5 // Following an unclean shutdown, a stability report can be collected and |
| 6 // submitted for upload to a reporter. | 6 // submitted for upload to a reporter. |
| 7 | 7 |
| 8 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ | 8 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ |
| 9 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ | 9 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ |
| 10 | 10 |
| 11 #include <stdio.h> | 11 #include <stdio.h> |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <set> | 14 #include <set> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/debug/activity_analyzer.h" | 18 #include "base/debug/activity_analyzer.h" |
| 19 #include "base/files/file.h" | 19 #include "base/files/file.h" |
| 20 #include "base/files/file_path.h" | 20 #include "base/files/file_path.h" |
| 21 #include "base/gtest_prod_util.h" | 21 #include "base/gtest_prod_util.h" |
| 22 #include "base/macros.h" | 22 #include "base/macros.h" |
| 23 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
| 24 #include "components/browser_watcher/postmortem_report_extractor.h" | |
| 25 #include "components/browser_watcher/stability_report.pb.h" | 24 #include "components/browser_watcher/stability_report.pb.h" |
| 25 #include "components/browser_watcher/stability_report_extractor.h" |
| 26 #include "components/browser_watcher/system_session_analyzer_win.h" | 26 #include "components/browser_watcher/system_session_analyzer_win.h" |
| 27 #include "third_party/crashpad/crashpad/client/crash_report_database.h" | 27 #include "third_party/crashpad/crashpad/client/crash_report_database.h" |
| 28 | 28 |
| 29 namespace browser_watcher { | 29 namespace browser_watcher { |
| 30 | 30 |
| 31 // Handles postmortem report collection by establishing the set of stability | 31 // Handles postmortem report collection by establishing the set of stability |
| 32 // files to collect, then for each file: | 32 // files to collect, then for each file: |
| 33 // - extracting a report protocol buffer | 33 // - extracting a report protocol buffer |
| 34 // - registering a crash report with the crash database | 34 // - registering a crash report with the crash database |
| 35 // - writing a minidump file for the report | 35 // - writing a minidump file for the report |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 std::string channel_name_; | 110 std::string channel_name_; |
| 111 | 111 |
| 112 SystemSessionAnalyzer* system_session_analyzer_; // Not owned. | 112 SystemSessionAnalyzer* system_session_analyzer_; // Not owned. |
| 113 | 113 |
| 114 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector); | 114 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace browser_watcher | 117 } // namespace browser_watcher |
| 118 | 118 |
| 119 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ | 119 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ |
| OLD | NEW |