OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 const base::PlatformFile& file); | 169 const base::PlatformFile& file); |
170 | 170 |
171 #if defined(OS_WIN) | 171 #if defined(OS_WIN) |
172 // Message handler for Windows hardware exception handling. | 172 // Message handler for Windows hardware exception handling. |
173 void OnAttachDebugExceptionHandler(const std::string& info, | 173 void OnAttachDebugExceptionHandler(const std::string& info, |
174 IPC::Message* reply_msg); | 174 IPC::Message* reply_msg); |
175 bool AttachDebugExceptionHandler(const std::string& info, | 175 bool AttachDebugExceptionHandler(const std::string& info, |
176 IPC::Message* reply_msg); | 176 IPC::Message* reply_msg); |
177 #endif | 177 #endif |
178 | 178 |
179 // Called when a PPAPI IPC channel has been created. | 179 // Called when the PPAPI IPC channel to the browser has been created. |
180 void OnPpapiChannelCreated(const IPC::ChannelHandle& channel_handle); | 180 void OnPpapiChannelCreated(const IPC::ChannelHandle& channel_handle); |
181 // Called when the PPAPI IPC channel to the renderer has been created. | |
182 void OnPpapiNaClChannelCreated(const IPC::ChannelHandle& channel_handle); | |
bbudge
2014/01/03 16:52:14
In theory we may create more than one renderer cha
| |
183 | |
181 // Called by PluginListener, so messages from the untrusted side of | 184 // Called by PluginListener, so messages from the untrusted side of |
182 // the IPC proxy can be handled. | 185 // the IPC proxy can be handled. |
183 bool OnUntrustedMessageForwarded(const IPC::Message& msg); | 186 bool OnUntrustedMessageForwarded(const IPC::Message& msg); |
184 | 187 |
185 GURL manifest_url_; | 188 GURL manifest_url_; |
186 ppapi::PpapiPermissions permissions_; | 189 ppapi::PpapiPermissions permissions_; |
187 | 190 |
188 #if defined(OS_WIN) | 191 #if defined(OS_WIN) |
189 // This field becomes true when the broker successfully launched | 192 // This field becomes true when the broker successfully launched |
190 // the NaCl loader. | 193 // the NaCl loader. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; | 236 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; |
234 | 237 |
235 int render_view_id_; | 238 int render_view_id_; |
236 | 239 |
237 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 240 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
238 }; | 241 }; |
239 | 242 |
240 } // namespace nacl | 243 } // namespace nacl |
241 | 244 |
242 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 245 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
OLD | NEW |