diff options
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/spellchecker/hunspell_engine.cc | 5 | ||||
-rw-r--r-- | chrome/renderer/spellchecker/hunspell_engine.h | 15 | ||||
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck.h | 4 |
3 files changed, 11 insertions, 13 deletions
diff --git a/chrome/renderer/spellchecker/hunspell_engine.cc b/chrome/renderer/spellchecker/hunspell_engine.cc index 34004f7..23706fa 100644 --- a/chrome/renderer/spellchecker/hunspell_engine.cc +++ b/chrome/renderer/spellchecker/hunspell_engine.cc @@ -2,11 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "hunspell_engine.h" +#include "chrome/renderer/spellchecker/hunspell_engine.h" #include <algorithm> #include <iterator> +#include "base/files/memory_mapped_file.h" #include "base/metrics/histogram.h" #include "base/time.h" #include "chrome/common/spellcheck_common.h" @@ -58,7 +59,7 @@ void HunspellEngine::InitializeHunspell() { if (hunspell_.get()) return; - bdict_file_.reset(new file_util::MemoryMappedFile); + bdict_file_.reset(new base::MemoryMappedFile); if (bdict_file_->Initialize(file_)) { TimeTicks debug_start_time = base::Histogram::DebugNow(); diff --git a/chrome/renderer/spellchecker/hunspell_engine.h b/chrome/renderer/spellchecker/hunspell_engine.h index 26d3a39c..bbc9fb4 100644 --- a/chrome/renderer/spellchecker/hunspell_engine.h +++ b/chrome/renderer/spellchecker/hunspell_engine.h @@ -5,18 +5,21 @@ #ifndef CHROME_RENDERER_SPELLCHECKER_HUNSPELL_ENGINE_H_ #define CHROME_RENDERER_SPELLCHECKER_HUNSPELL_ENGINE_H_ -#include "base/file_util.h" +#include <string> +#include <vector> + #include "base/memory/scoped_ptr.h" #include "base/string16.h" #include "base/utf_string_conversions.h" #include "chrome/common/spellcheck_common.h" #include "chrome/renderer/spellchecker/spelling_engine.h" -#include <string> -#include <vector> - class Hunspell; +namespace base { +class MemoryMappedFile; +} + class HunspellEngine : public SpellingEngine { public: HunspellEngine(); @@ -36,7 +39,7 @@ class HunspellEngine : public SpellingEngine { void InitializeHunspell(); // We memory-map the BDict file. - scoped_ptr<file_util::MemoryMappedFile> bdict_file_; + scoped_ptr<base::MemoryMappedFile> bdict_file_; // The hunspell dictionary in use. scoped_ptr<Hunspell> hunspell_; @@ -51,8 +54,6 @@ class HunspellEngine : public SpellingEngine { // This flags is true if we have requested dictionary. bool dictionary_requested_; - }; #endif // CHROME_RENDERER_SPELLCHECKER_HUNSPELL_ENGINE_H_ - diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h index 5812986..8e4c710 100644 --- a/chrome/renderer/spellchecker/spellcheck.h +++ b/chrome/renderer/spellchecker/spellcheck.h @@ -21,10 +21,6 @@ struct SpellCheckResult; -namespace file_util { -class MemoryMappedFile; -} - namespace WebKit { class WebTextCheckingCompletion; struct WebTextCheckingResult; |