#include "content/browser/renderer_host/render_widget_helper.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/lazy_instance.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
namespace content {
namespace {
WidgetHelperMap;
base::LazyInstance<WidgetHelperMap>::DestructorAtExit g_widget_helpers = …;
void AddWidgetHelper(int render_process_id,
const scoped_refptr<RenderWidgetHelper>& widget_helper) { … }
}
RenderWidgetHelper::FrameTokens::FrameTokens(
int32_t routing_id,
const base::UnguessableToken& devtools_frame_token,
const blink::DocumentToken& document_token)
: … { … }
RenderWidgetHelper::FrameTokens::FrameTokens(const FrameTokens& other) =
default;
RenderWidgetHelper::FrameTokens& RenderWidgetHelper::FrameTokens::operator=(
const FrameTokens& other) = default;
RenderWidgetHelper::FrameTokens::~FrameTokens() = default;
RenderWidgetHelper::RenderWidgetHelper() : … { … }
RenderWidgetHelper::~RenderWidgetHelper() { … }
void RenderWidgetHelper::Init(int render_process_id) { … }
int RenderWidgetHelper::GetNextRoutingID() { … }
bool RenderWidgetHelper::TakeStoredDataForFrameToken(
const blink::LocalFrameToken& frame_token,
int32_t& routing_id,
base::UnguessableToken& devtools_frame_token,
blink::DocumentToken& document_token) { … }
void RenderWidgetHelper::StoreNextFrameRoutingID(
int32_t routing_id,
const blink::LocalFrameToken& frame_token,
const base::UnguessableToken& devtools_frame_token,
const blink::DocumentToken& document_token) { … }
}