#include "chrome/test/chromedriver/chrome/frame_tracker.h"
#include <utility>
#include "base/json/json_writer.h"
#include "chrome/test/chromedriver/chrome/devtools_client.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/chrome/web_view_impl.h"
FrameTracker::FrameTracker(DevToolsClient* client, WebView* web_view)
: … { … }
FrameTracker::~FrameTracker() = default;
Status FrameTracker::GetContextIdForFrame(const std::string& frame_id,
std::string* context_id) const { … }
void FrameTracker::SetContextIdForFrame(std::string frame_id,
std::string context_id) { … }
WebView* FrameTracker::GetTargetForFrame(const std::string& frame_id) { … }
bool FrameTracker::IsKnownFrame(const std::string& frame_id) const { … }
void FrameTracker::DeleteTargetForFrame(const std::string& frame_id) { … }
Status FrameTracker::OnConnected(DevToolsClient* client) { … }
Status FrameTracker::OnEvent(DevToolsClient* client,
const std::string& method,
const base::Value::Dict& params) { … }