// Copyright 2021 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_UI_WEBUI_ASH_LOCK_SCREEN_REAUTH_LOCK_SCREEN_NETWORK_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_ASH_LOCK_SCREEN_REAUTH_LOCK_SCREEN_NETWORK_HANDLER_H_
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace ash {
class NetworkConfigMessageHandler : public content::WebUIMessageHandler {
public:
NetworkConfigMessageHandler();
~NetworkConfigMessageHandler() override;
// WebUIMessageHandler implementation.
void RegisterMessages() override;
private:
void Initialize(const base::Value::List& args);
void ShowNetworkDetails(const base::Value::List& args);
void ShowNetworkConfig(const base::Value::List& args);
void AddNetwork(const base::Value::List& args);
void GetHostname(const base::Value::List& args);
void Respond(const std::string& callback_id, base::ValueView response);
base::WeakPtrFactory<NetworkConfigMessageHandler> weak_ptr_factory_{this};
};
} // namespace ash
#endif // CHROME_BROWSER_UI_WEBUI_ASH_LOCK_SCREEN_REAUTH_LOCK_SCREEN_NETWORK_HANDLER_H_