#ifndef CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
#define CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
#include <string>
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/test/chromedriver/command.h"
#include "chrome/test/chromedriver/session_thread_map.h"
namespace base {
class DictionaryValue;
class Value;
}
struct Session;
class Status;
void ExecuteGetStatus(
const base::DictionaryValue& params,
const std::string& session_id,
const CommandCallback& callback);
void ExecuteCreateSession(
SessionThreadMap* session_thread_map,
const Command& init_session_cmd,
const base::DictionaryValue& params,
const std::string& session_id,
const CommandCallback& callback);
void ExecuteQuitAll(
const Command& quit_command,
SessionThreadMap* session_thread_map,
const base::DictionaryValue& params,
const std::string& session_id,
const CommandCallback& callback);
typedef base::Callback<Status(
Session* session,
const base::DictionaryValue&,
scoped_ptr<base::Value>*)> SessionCommand;
void ExecuteSessionCommand(
SessionThreadMap* session_thread_map,
const char* command_name,
const SessionCommand& command,
bool return_ok_without_session,
const base::DictionaryValue& params,
const std::string& session_id,
const CommandCallback& callback);
namespace internal {
void CreateSessionOnSessionThreadForTesting(const std::string& id);
}
#endif