OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void InitVisitedLinks(); | 118 void InitVisitedLinks(); |
119 | 119 |
120 // Initialize support for user scripts. Send the renderer process its initial | 120 // Initialize support for user scripts. Send the renderer process its initial |
121 // set of scripts and listen for updates to scripts. | 121 // set of scripts and listen for updates to scripts. |
122 void InitUserScripts(); | 122 void InitUserScripts(); |
123 | 123 |
124 // Initialize support for extension APIs. Send the list of registered API | 124 // Initialize support for extension APIs. Send the list of registered API |
125 // functions to thre renderer process. | 125 // functions to thre renderer process. |
126 void InitExtensions(); | 126 void InitExtensions(); |
127 | 127 |
| 128 // Initialize support for speech input API. Informs the renderer if the API |
| 129 // is enabled or not. |
| 130 void InitSpeechInput(); |
| 131 |
128 // Sends the renderer process a new set of user scripts. | 132 // Sends the renderer process a new set of user scripts. |
129 void SendUserScriptsUpdate(base::SharedMemory* shared_memory); | 133 void SendUserScriptsUpdate(base::SharedMemory* shared_memory); |
130 | 134 |
131 // Sends the renderer process the list of all loaded extensions along with a | 135 // Sends the renderer process the list of all loaded extensions along with a |
132 // subset of information the renderer needs about them. | 136 // subset of information the renderer needs about them. |
133 void SendExtensionInfo(); | 137 void SendExtensionInfo(); |
134 | 138 |
135 // Generates a command line to be used to spawn a renderer and appends the | 139 // Generates a command line to be used to spawn a renderer and appends the |
136 // results to |*command_line|. | 140 // results to |*command_line|. |
137 void AppendRendererCommandLine(CommandLine* command_line) const; | 141 void AppendRendererCommandLine(CommandLine* command_line) const; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // messages that are sent once the process handle is available. This is | 224 // messages that are sent once the process handle is available. This is |
221 // because the queued messages may have dependencies on the init messages. | 225 // because the queued messages may have dependencies on the init messages. |
222 std::queue<IPC::Message*> queued_messages_; | 226 std::queue<IPC::Message*> queued_messages_; |
223 | 227 |
224 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; | 228 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; |
225 | 229 |
226 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 230 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
227 }; | 231 }; |
228 | 232 |
229 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 233 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |