| 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 CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class NaClProcessHost : public content::BrowserChildProcessHostDelegate { | 43 class NaClProcessHost : public content::BrowserChildProcessHostDelegate { |
| 44 public: | 44 public: |
| 45 // manifest_url: the URL of the manifest of the Native Client plugin being | 45 // manifest_url: the URL of the manifest of the Native Client plugin being |
| 46 // executed. | 46 // executed. |
| 47 // render_view_id: RenderView routing id, to control access to private APIs. | 47 // render_view_id: RenderView routing id, to control access to private APIs. |
| 48 // permission_bits: controls which interfaces the NaCl plugin can use. | 48 // permission_bits: controls which interfaces the NaCl plugin can use. |
| 49 // off_the_record: was the process launched from an incognito renderer? | 49 // off_the_record: was the process launched from an incognito renderer? |
| 50 NaClProcessHost(const GURL& manifest_url, | 50 NaClProcessHost(const GURL& manifest_url, |
| 51 int render_view_id, | 51 int render_view_id, |
| 52 uint32 permission_bits, | 52 uint32 permission_bits, |
| 53 bool off_the_record); | 53 bool off_the_record, |
| 54 bool uses_irt); |
| 54 virtual ~NaClProcessHost(); | 55 virtual ~NaClProcessHost(); |
| 55 | 56 |
| 56 // Do any minimal work that must be done at browser startup. | 57 // Do any minimal work that must be done at browser startup. |
| 57 static void EarlyStartup(); | 58 static void EarlyStartup(); |
| 58 | 59 |
| 59 // Initialize the new NaCl process. Result is returned by sending ipc | 60 // Initialize the new NaCl process. Result is returned by sending ipc |
| 60 // message reply_msg. | 61 // message reply_msg. |
| 61 void Launch(ChromeRenderMessageFilter* chrome_render_message_filter, | 62 void Launch(ChromeRenderMessageFilter* chrome_render_message_filter, |
| 62 int socket_count, | 63 int socket_count, |
| 63 IPC::Message* reply_msg, | 64 IPC::Message* reply_msg, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 193 |
| 193 scoped_ptr<content::BrowserChildProcessHost> process_; | 194 scoped_ptr<content::BrowserChildProcessHost> process_; |
| 194 | 195 |
| 195 bool enable_exception_handling_; | 196 bool enable_exception_handling_; |
| 196 bool enable_debug_stub_; | 197 bool enable_debug_stub_; |
| 197 | 198 |
| 198 bool off_the_record_; | 199 bool off_the_record_; |
| 199 | 200 |
| 200 bool enable_ipc_proxy_; | 201 bool enable_ipc_proxy_; |
| 201 | 202 |
| 203 bool uses_irt_; |
| 204 |
| 202 // Channel proxy to terminate the NaCl-Browser PPAPI channel. | 205 // Channel proxy to terminate the NaCl-Browser PPAPI channel. |
| 203 scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_; | 206 scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_; |
| 204 // Plugin listener, to forward browser channel messages to us. | 207 // Plugin listener, to forward browser channel messages to us. |
| 205 PluginListener ipc_plugin_listener_; | 208 PluginListener ipc_plugin_listener_; |
| 206 // Browser host for plugin process. | 209 // Browser host for plugin process. |
| 207 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; | 210 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; |
| 208 | 211 |
| 209 int render_view_id_; | 212 int render_view_id_; |
| 210 | 213 |
| 211 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 214 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
| 212 }; | 215 }; |
| 213 | 216 |
| 214 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 217 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
| OLD | NEW |