Chromium Code Reviews| Index: components/browser_watcher/stability_report_user_stream_data_source.h |
| diff --git a/components/browser_watcher/stability_report_user_stream_data_source.h b/components/browser_watcher/stability_report_user_stream_data_source.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aec2da58f0b95738391336b5b4a7c14fc68991d5 |
| --- /dev/null |
| +++ b/components/browser_watcher/stability_report_user_stream_data_source.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_REPORT_USER_STREAM_DATA_SOURCE_H_ |
| +#define COMPONENTS_BROWSER_WATCHER_STABILITY_REPORT_USER_STREAM_DATA_SOURCE_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/logging.h" |
| +#include "base/strings/string16.h" |
| +#include "third_party/crashpad/crashpad/handler/user_stream_data_source.h" |
| + |
| +namespace crashpad { |
| +class MinidumpUserExtensionStreamDataSource; |
| +class ProcessSnapshot; |
| +} |
| + |
| +namespace browser_watcher { |
| + |
| +class StabilityReportUserStreamDataSource |
|
Sigurður Ásgeirsson
2017/05/11 15:33:40
nit: quick comment on the purpose of this class?
manzagop (departed)
2017/05/11 19:14:53
Done.
|
| + : public crashpad::UserStreamDataSource { |
| + public: |
| + explicit StabilityReportUserStreamDataSource( |
| + const base::string16& user_data_dir); |
| + |
| + std::unique_ptr<crashpad::MinidumpUserExtensionStreamDataSource> |
| + ProduceStreamData(crashpad::ProcessSnapshot* process_snapshot) override; |
| + |
| + private: |
| + base::string16 user_data_dir_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(StabilityReportUserStreamDataSource); |
| +}; |
| + |
| +} // namespace browser_watcher |
| + |
| +#endif // COMPONENTS_BROWSER_WATCHER_STABILITY_REPORT_USER_STREAM_DATA_SOURCE_H_ |