#include "remoting/test/it2me_cli_host.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "net/base/network_change_notifier.h"
#include "remoting/base/auto_thread_task_runner.h"
#include "remoting/base/logging.h"
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/it2me/it2me_constants.h"
#include "remoting/host/it2me/it2me_native_messaging_host.h"
#include "remoting/host/policy_watcher.h"
#include "remoting/test/test_oauth_token_getter.h"
#include "remoting/test/test_token_storage.h"
namespace remoting {
namespace {
constexpr char kCRDDebugLog[] = …;
constexpr char kSwitchNameHelp[] = …;
constexpr char kSwitchNameUsername[] = …;
constexpr char kSwitchNameStoragePath[] = …;
std::unique_ptr<It2MeNativeMessagingHost> CreateNativeMessagingHost(
scoped_refptr<AutoThreadTaskRunner> ui_task_runner) { … }
}
bool It2MeCliHost::ShouldPrintHelp() { … }
void It2MeCliHost::PrintHelp() { … }
It2MeCliHost::It2MeCliHost() { … }
It2MeCliHost::~It2MeCliHost() = default;
void It2MeCliHost::Start() { … }
void It2MeCliHost::PostMessageFromNativeHost(const std::string& message) { … }
void It2MeCliHost::CloseChannel(const std::string& error_message) { … }
void It2MeCliHost::SendMessageToHost(const std::string& type,
base::Value::Dict params) { … }
void It2MeCliHost::DoSendMessage(const std::string& json) { … }
void It2MeCliHost::OnProtocolBroken(const std::string& message) { … }
void It2MeCliHost::StartCRDHostAndGetCode(OAuthTokenGetter::Status status,
const std::string& user_email,
const std::string& access_token) { … }
void It2MeCliHost::ShutdownHost() { … }
void It2MeCliHost::DoShutdownHost() { … }
void It2MeCliHost::OnHelloResponse() { … }
void It2MeCliHost::OnDisconnectResponse() { … }
void It2MeCliHost::OnStateError(const std::string& error_state,
const base::Value::Dict& message) { … }
void It2MeCliHost::OnStateRemoteConnected(const base::Value::Dict& message) { … }
void It2MeCliHost::OnStateRemoteDisconnected() { … }
void It2MeCliHost::OnStateReceivedAccessCode(const base::Value::Dict& message) { … }
}