#include "components/language_detection/content/renderer/language_detection_agent.h"
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/trace_event/trace_event.h"
#include "components/language_detection/core/language_detection_model.h"
#include "components/language_detection/core/language_detection_provider.h"
#include "content/public/renderer/render_frame.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
namespace language_detection {
LanguageDetectionAgent::LanguageDetectionAgent(
content::RenderFrame* render_frame)
: … { … }
LanguageDetectionAgent::~LanguageDetectionAgent() = default;
const mojo::Remote<mojom::ContentLanguageDetectionDriver>&
LanguageDetectionAgent::GetLanguageDetectionHandler() { … }
void LanguageDetectionAgent::UpdateLanguageDetectionModel(
base::File model_file) { … }
void LanguageDetectionAgent::WasShown() { … }
void LanguageDetectionAgent::OnDestruct() { … }
}