// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_API_CRASH_REPORT_PRIVATE_CRASH_REPORT_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_CRASH_REPORT_PRIVATE_CRASH_REPORT_PRIVATE_API_H_
#include "chrome/common/extensions/api/crash_report_private.h"
#include "extensions/browser/extension_function.h"
#include "extensions/browser/extension_function_histogram_value.h"
namespace extensions {
namespace api {
class CrashReportPrivateReportErrorFunction : public ExtensionFunction {
public:
CrashReportPrivateReportErrorFunction();
CrashReportPrivateReportErrorFunction(
const CrashReportPrivateReportErrorFunction&) = delete;
CrashReportPrivateReportErrorFunction& operator=(
const CrashReportPrivateReportErrorFunction&) = delete;
DECLARE_EXTENSION_FUNCTION("crashReportPrivate.reportError",
CRASHREPORTPRIVATE_REPORTERROR)
protected:
~CrashReportPrivateReportErrorFunction() override;
ResponseAction Run() override;
private:
void OnReportComplete();
};
} // namespace api
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_CRASH_REPORT_PRIVATE_CRASH_REPORT_PRIVATE_API_H_