#include "chrome/renderer/browser_exposed_renderer_interfaces.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/renderer/chrome_render_thread_observer.h"
#include "chrome/renderer/media/webrtc_logging_agent_impl.h"
#include "components/spellcheck/spellcheck_buildflags.h"
#include "components/visitedlink/renderer/visitedlink_reader.h"
#include "components/web_cache/renderer/web_cache_impl.h"
#include "mojo/public/cpp/bindings/binder_map.h"
#if BUILDFLAG(ENABLE_SPELLCHECK)
#include "components/spellcheck/renderer/spellcheck.h"
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "base/allocator/buildflags.h"
#if defined(ARCH_CPU_X86_64)
#include "chrome/renderer/performance_manager/mechanisms/userspace_swap_impl_chromeos.h"
#endif
#endif
#if BUILDFLAG(IS_WIN)
#include "chrome/renderer/font_prewarmer.h"
#endif
namespace {
void BindWebRTCLoggingAgent(
ChromeContentRendererClient* client,
mojo::PendingReceiver<chrome::mojom::WebRtcLoggingAgent> receiver) { … }
#if BUILDFLAG(ENABLE_SPELLCHECK)
void BindSpellChecker(
ChromeContentRendererClient* client,
mojo::PendingReceiver<spellcheck::mojom::SpellChecker> receiver) { … }
#endif
}
void ExposeChromeRendererInterfacesToBrowser(
ChromeContentRendererClient* client,
mojo::BinderMap* binders) { … }