summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 23:12:52 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 23:12:52 +0000
commit5658a60a850150c146906932f302bbf0cf8b9684 (patch)
tree184d74b274283eaf81550639c4fe9f4d0361d8b2 /chrome/browser/spellchecker.h
parent79084c2d01586797f762cbb308cb2c204dd9a164 (diff)
downloadchromium_src-5658a60a850150c146906932f302bbf0cf8b9684.zip
chromium_src-5658a60a850150c146906932f302bbf0cf8b9684.tar.gz
chromium_src-5658a60a850150c146906932f302bbf0cf8b9684.tar.bz2
Use ChromeThread::DeleteOnIOThread in a few places where an object must be deleted on a certain thread.
BUG=25354 Review URL: http://codereview.chromium.org/342090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r--chrome/browser/spellchecker.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h
index 26315d8..303956c 100644
--- a/chrome/browser/spellchecker.h
+++ b/chrome/browser/spellchecker.h
@@ -13,7 +13,7 @@
#include "base/string16.h"
#include "base/task.h"
#include "base/time.h"
-#include "chrome/browser/browser_process.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/net/url_fetcher.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/spellcheck_worditerator.h"
@@ -42,8 +42,10 @@ class MemoryMappedFile;
// This object should also be deleted on the I/O thread only. It owns a
// reference to URLRequestContext which in turn owns the cache, etc. and must be
// deleted on the I/O thread itself.
-class SpellChecker : public base::RefCountedThreadSafe<SpellChecker>,
- public URLFetcher::Delegate {
+class SpellChecker
+ : public base::RefCountedThreadSafe<
+ SpellChecker, ChromeThread::DeleteOnIOThread>,
+ public URLFetcher::Delegate {
public:
// Creates the spellchecker by reading dictionaries from the given directory,
// and defaulting to the given language. Both strings must be provided.