#include "components/spellcheck/renderer/hunspell_engine.h"
#include <stddef.h>
#include <algorithm>
#include <iterator>
#include <memory>
#include <utility>
#include "base/files/memory_mapped_file.h"
#include "base/time/time.h"
#include "components/spellcheck/common/spellcheck.mojom.h"
#include "components/spellcheck/common/spellcheck_common.h"
#include "content/public/renderer/render_thread.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/service_manager/public/cpp/local_interface_provider.h"
#include "third_party/hunspell/src/hunspell/hunspell.hxx"
RenderThread;
namespace {
const size_t kMaxCheckedLen = …;
const size_t kMaxSuggestLen = …;
static_assert …;
static_assert …;
}
HunspellEngine::HunspellEngine(
service_manager::LocalInterfaceProvider* embedder_provider)
: … { … }
HunspellEngine::~HunspellEngine() { … }
void HunspellEngine::Init(base::File file) { … }
void HunspellEngine::InitializeHunspell() { … }
bool HunspellEngine::CheckSpelling(const std::u16string& word_to_check,
spellcheck::mojom::SpellCheckHost& host) { … }
void HunspellEngine::FillSuggestionList(
const std::u16string& wrong_word,
spellcheck::mojom::SpellCheckHost& host,
std::vector<std::u16string>* optional_suggestions) { … }
bool HunspellEngine::InitializeIfNeeded() { … }
bool HunspellEngine::IsEnabled() { … }