OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 bool has_cmd_prefix); | 139 bool has_cmd_prefix); |
140 | 140 |
141 // Gets a handle to the renderer process, normalizing the case where we were | 141 // Gets a handle to the renderer process, normalizing the case where we were |
142 // started with --single-process. | 142 // started with --single-process. |
143 base::ProcessHandle GetRendererProcessHandle(); | 143 base::ProcessHandle GetRendererProcessHandle(); |
144 | 144 |
145 // Callers can reduce the RenderProcess' priority. | 145 // Callers can reduce the RenderProcess' priority. |
146 // Returns true if the priority is backgrounded; false otherwise. | 146 // Returns true if the priority is backgrounded; false otherwise. |
147 void SetBackgrounded(bool boost); | 147 void SetBackgrounded(bool boost); |
148 | 148 |
| 149 #if defined(SPELLCHECKER_IN_RENDERER) |
| 150 // The renderer has requested that we initialize its spellchecker. This should |
| 151 // generally only be called once per session, as after the first call, all |
| 152 // future renderers will be passed the initialization information on startup |
| 153 // (or when the dictionary changes in some way). |
| 154 void OnSpellCheckerRequestDictionary(); |
| 155 |
| 156 // Tell the renderer of a new word that has been added to the custom |
| 157 // dictionary. |
| 158 void AddSpellCheckWord(const std::string& word); |
| 159 |
| 160 // Pass the renderer some basic intialization information. Note that the |
| 161 // renderer will not load Hunspell until it needs to. |
| 162 void InitSpellChecker(); |
| 163 |
| 164 // Tell the renderer that auto spell correction has been enabled/disabled. |
| 165 void EnableAutoSpellCorrect(bool enable); |
| 166 #endif |
| 167 |
149 NotificationRegistrar registrar_; | 168 NotificationRegistrar registrar_; |
150 | 169 |
151 // The count of currently visible widgets. Since the host can be a container | 170 // The count of currently visible widgets. Since the host can be a container |
152 // for multiple widgets, it uses this count to determine when it should be | 171 // for multiple widgets, it uses this count to determine when it should be |
153 // backgrounded. | 172 // backgrounded. |
154 int32 visible_widgets_; | 173 int32 visible_widgets_; |
155 | 174 |
156 // Does this process have backgrounded priority. | 175 // Does this process have backgrounded priority. |
157 bool backgrounded_; | 176 bool backgrounded_; |
158 | 177 |
(...skipping 24 matching lines...) Expand all Loading... |
183 // Buffer visited links and send them to to renderer. | 202 // Buffer visited links and send them to to renderer. |
184 scoped_ptr<VisitedLinkUpdater> visited_link_updater_; | 203 scoped_ptr<VisitedLinkUpdater> visited_link_updater_; |
185 | 204 |
186 // True iff the renderer is a child of a zygote process. | 205 // True iff the renderer is a child of a zygote process. |
187 bool zygote_child_; | 206 bool zygote_child_; |
188 | 207 |
189 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 208 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
190 }; | 209 }; |
191 | 210 |
192 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 211 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |