#include "chrome/test/chromedriver/chrome/devtools_http_client.h"
#include <memory>
#include <utility>
#include "base/json/json_reader.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "chrome/test/chromedriver/chrome/devtools_client_impl.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/net/net_util.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"
DevToolsHttpClient::DevToolsHttpClient(
const DevToolsEndpoint& endpoint,
network::mojom::URLLoaderFactory* factory)
: … { … }
DevToolsHttpClient::~DevToolsHttpClient() = default;
Status DevToolsHttpClient::Init(const base::TimeDelta& timeout) { … }
Status DevToolsHttpClient::GetWebViewsInfo(WebViewsInfo* views_info) { … }
const BrowserInfo* DevToolsHttpClient::browser_info() { … }
bool DevToolsHttpClient::FetchUrlAndLog(const std::string& url,
std::string* response) { … }
Status DevToolsHttpClient::ParseWebViewsInfo(const std::string& data,
WebViewsInfo& views_info) { … }