#include "chrome/test/chromedriver/chrome/web_view_info.h"
#include <memory>
#include <unordered_map>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "chrome/test/chromedriver/chrome/log.h"
#include "chrome/test/chromedriver/chrome/status.h"
WebViewInfo::WebViewInfo(const std::string& id,
const std::string& debugger_url,
const std::string& url,
Type type)
: … { … }
WebViewInfo::WebViewInfo(const WebViewInfo& other) = default;
WebViewInfo::~WebViewInfo() = default;
bool WebViewInfo::IsFrontend() const { … }
bool WebViewInfo::IsInactiveBackgroundPage() const { … }
Status WebViewInfo::ParseType(const std::string& type_as_string,
WebViewInfo::Type& type) { … }
WebViewsInfo::WebViewsInfo() = default;
WebViewsInfo::WebViewsInfo(const std::vector<WebViewInfo>& info)
: … { … }
WebViewsInfo::~WebViewsInfo() = default;
const WebViewInfo& WebViewsInfo::Get(int index) const { … }
size_t WebViewsInfo::GetSize() const { … }
const WebViewInfo* WebViewsInfo::GetForId(const std::string& id) const { … }
Status WebViewsInfo::FillFromTargetsInfo(
const base::Value::List& target_infos) { … }
bool WebViewsInfo::ContainsTargetType(WebViewInfo::Type type) const { … }
const WebViewInfo* WebViewsInfo::FindFirst(WebViewInfo::Type type) const { … }