OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void InitForRenderer(RenderProcessHost* process); | 53 virtual void InitForRenderer(RenderProcessHost* process); |
54 virtual void AddWord(const std::string& word); | 54 virtual void AddWord(const std::string& word); |
55 virtual const base::PlatformFile& GetDictionaryFile() const; | 55 virtual const base::PlatformFile& GetDictionaryFile() const; |
56 virtual const std::string& GetLanguage() const; | 56 virtual const std::string& GetLanguage() const; |
57 virtual bool IsUsingPlatformChecker() const; | 57 virtual bool IsUsingPlatformChecker() const; |
58 | 58 |
59 private: | 59 private: |
60 typedef SpellCheckProfileProvider::CustomWordList CustomWordList; | 60 typedef SpellCheckProfileProvider::CustomWordList CustomWordList; |
61 | 61 |
62 // These two classes can destruct us. | 62 // These two classes can destruct us. |
63 friend class BrowserThread; | 63 friend class content::BrowserThread; |
64 friend class DeleteTask<SpellCheckHostImpl>; | 64 friend class DeleteTask<SpellCheckHostImpl>; |
65 | 65 |
66 virtual ~SpellCheckHostImpl(); | 66 virtual ~SpellCheckHostImpl(); |
67 | 67 |
68 // Figure out the location for the dictionary. This is only non-trivial for | 68 // Figure out the location for the dictionary. This is only non-trivial for |
69 // Windows: | 69 // Windows: |
70 // The default place whether the spellcheck dictionary can reside is | 70 // The default place whether the spellcheck dictionary can reside is |
71 // chrome::DIR_APP_DICTIONARIES. However, for systemwide installations, | 71 // chrome::DIR_APP_DICTIONARIES. However, for systemwide installations, |
72 // this directory may not have permissions for download. In that case, the | 72 // this directory may not have permissions for download. In that case, the |
73 // alternate directory for download is chrome::DIR_USER_DATA. | 73 // alternate directory for download is chrome::DIR_USER_DATA. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 content::NotificationRegistrar registrar_; | 157 content::NotificationRegistrar registrar_; |
158 | 158 |
159 // An optional metrics counter given by the constructor. | 159 // An optional metrics counter given by the constructor. |
160 SpellCheckHostMetrics* metrics_; | 160 SpellCheckHostMetrics* metrics_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); | 162 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ | 165 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
OLD | NEW |