#ifndef CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
#define CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
#include <memory>
#include <string>
#include "base/functional/callback_forward.h"
#include "base/values.h"
#include "chrome/test/chromedriver/command.h"
#include "chrome/test/chromedriver/session_connection_map.h"
#include "chrome/test/chromedriver/session_thread_map.h"
struct Session;
class Status;
void ExecuteGetStatus(const base::Value::Dict& params,
const std::string& session_id,
const CommandCallback& callback);
void ExecuteBidiSessionStatus(const base::Value::Dict& params,
const std::string& session_id,
const CommandCallback& callback);
void ExecuteCreateSession(SessionThreadMap* session_thread_map,
const Command& init_session_cmd,
const base::Value::Dict& params,
const std::string& host,
const CommandCallback& callback);
void ExecuteBidiSessionNew(SessionThreadMap* session_thread_map,
const Command& init_session_cmd,
const base::Value::Dict& params,
const std::string& resource,
const CommandCallback& callback);
void ExecuteGetSessions(const Command& session_capabilities_command,
SessionThreadMap* session_thread_map,
const base::Value::Dict& params,
const std::string& session_id,
const CommandCallback& callback);
void ExecuteQuitAll(const Command& quit_command,
SessionThreadMap* session_thread_map,
const base::Value::Dict& params,
const std::string& session_id,
const CommandCallback& callback);
SessionCommand;
void ExecuteSessionCommand(SessionThreadMap* session_thread_map,
SessionConnectionMap* session_connection_map,
const char* command_name,
const SessionCommand& command,
bool w3c_standard_command,
bool return_ok_without_session,
const base::Value::Dict& params,
const std::string& session_id,
const CommandCallback& callback);
namespace internal {
void CreateSessionOnSessionThreadForTesting(const std::string& id);
}
#endif