summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 20:12:38 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 20:12:38 +0000
commit45cbfb0444d2ae27d9dbc9880c547c0d42978782 (patch)
tree3f5a3477831c68b73f87365c8222b3033758358a /chrome/browser/spellchecker.h
parentf33651e32ab77d1413e01f5fed1e90f5b36f7534 (diff)
downloadchromium_src-45cbfb0444d2ae27d9dbc9880c547c0d42978782.zip
chromium_src-45cbfb0444d2ae27d9dbc9880c547c0d42978782.tar.gz
chromium_src-45cbfb0444d2ae27d9dbc9880c547c0d42978782.tar.bz2
Add a MemoryMappedFile class to file_util.
Factor out windowisms from the spell checker. Review URL: http://codereview.chromium.org/14041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r--chrome/browser/spellchecker.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h
index 45eb73d..921a08e 100644
--- a/chrome/browser/spellchecker.h
+++ b/chrome/browser/spellchecker.h
@@ -24,6 +24,9 @@ class Profile;
class MessageLoop;
class URLRequestContext;
+namespace file_util {
+class MemoryMappedFile;
+}
// The Browser's Spell Checker. It checks and suggests corrections.
//
@@ -119,14 +122,11 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
// Path to the custom dictionary file.
std::wstring custom_dictionary_file_name_;
- // We memory-map the BDict file for spellchecking. These are the handles
- // necessary for that.
- HANDLE bdict_file_;
- HANDLE bdict_mapping_;
- const unsigned char* bdict_mapped_data_;
+ // We memory-map the BDict file.
+ scoped_ptr<file_util::MemoryMappedFile> bdict_file_;
// The hunspell dictionary in use.
- Hunspell* hunspell_;
+ scoped_ptr<Hunspell> hunspell_;
// Represents character attributes used for filtering out characters which
// are not supported by this SpellChecker object.