#include "chrome/browser/ai/ai_context_bound_object_set.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/supports_user_data.h"
#include "base/types/pass_key.h"
#include "content/public/browser/document_user_data.h"
#include "content/public/browser/render_frame_host.h"
namespace {
const char kAIContextBoundObjectSetUserDataKey[] = …;
}
class AIContextBoundObjectSetSupportsUserData
: public AIContextBoundObjectSet,
public base::SupportsUserData::Data { … };
class AIContextBoundObjectSetDocumentUserData
: public AIContextBoundObjectSet,
public content::DocumentUserData<
AIContextBoundObjectSetDocumentUserData> { … };
DOCUMENT_USER_DATA_KEY_IMPL(AIContextBoundObjectSetDocumentUserData);
AIContextBoundObjectSet::ReceiverContextRawRef
AIContextBoundObjectSet::ToReceiverContextRawRef(ReceiverContext context) { … }
AIContextBoundObjectSet::ReceiverContext
AIContextBoundObjectSet::ToReceiverContext(
ReceiverContextRawRef context_raw_ref) { … }
AIContextBoundObjectSet::AIContextBoundObjectSet() = default;
AIContextBoundObjectSet::~AIContextBoundObjectSet() = default;
void AIContextBoundObjectSet::AddContextBoundObject(
std::unique_ptr<AIContextBoundObject> object) { … }
void AIContextBoundObjectSet::RemoveContextBoundObject(
AIContextBoundObject* object) { … }
AIContextBoundObjectSet* AIContextBoundObjectSet::GetFromContext(
ReceiverContext context) { … }
size_t AIContextBoundObjectSet::GetSizeForTesting() { … }