#include "chrome/browser/devtools/device/adb/adb_device_provider.h"
#include <string_view>
#include "base/functional/bind.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/devtools/device/adb/adb_client_socket.h"
namespace {
const char kHostDevicesCommand[] = …;
const char kHostTransportCommand[] = …;
const char kLocalAbstractCommand[] = …;
const int kAdbPort = …;
static void RunCommand(const std::string& serial,
const std::string& command,
AdbDeviceProvider::CommandCallback callback) { … }
static void ReceivedAdbDevices(AdbDeviceProvider::SerialsCallback callback,
int result_code,
const std::string& response) { … }
}
void AdbDeviceProvider::QueryDevices(SerialsCallback callback) { … }
void AdbDeviceProvider::QueryDeviceInfo(const std::string& serial,
DeviceInfoCallback callback) { … }
void AdbDeviceProvider::OpenSocket(const std::string& serial,
const std::string& socket_name,
SocketCallback callback) { … }
AdbDeviceProvider::~AdbDeviceProvider() { … }