blob: 21958e35ef04855561de0cb938b2741d9ce1e87f [file] [log] [blame]
// Copyright 2021 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 CHROME_BROWSER_UI_WEBUI_FEEDBACK_FEEDBACK_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_FEEDBACK_FEEDBACK_HANDLER_H_
#include "chrome/browser/ui/webui/feedback/feedback_dialog.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace base {
class ListValue;
} // namespace base
class FeedbackHandler : public content::WebUIMessageHandler {
public:
explicit FeedbackHandler(const FeedbackDialog* dialog);
FeedbackHandler(const FeedbackHandler&) = delete;
FeedbackHandler& operator=(const FeedbackHandler&) = delete;
~FeedbackHandler() override;
// Overrides from content::WebUIMessageHandler
void RegisterMessages() override;
private:
void HandleShowDialog(const base::ListValue* args);
#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
void HandleShowAssistantLogsInfo(const base::ListValue* args);
void HandleShowBluetoothLogsInfo(const base::ListValue* args);
#endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
void HandleShowMetrics(const base::ListValue* args);
void HandleShowSystemInfo(const base::ListValue* args);
const FeedbackDialog* dialog_;
};
#endif // CHROME_BROWSER_UI_WEBUI_FEEDBACK_FEEDBACK_HANDLER_H_