Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.h

Issue 11783112: Remove the NaCl SRPC proxy from Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/nacl_host/nacl_browser.cc ('k') | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Get path to manifest on local disk if possible. 112 // Get path to manifest on local disk if possible.
113 FilePath GetManifestPath(); 113 FilePath GetManifestPath();
114 bool LaunchSelLdr(); 114 bool LaunchSelLdr();
115 115
116 // BrowserChildProcessHostDelegate implementation: 116 // BrowserChildProcessHostDelegate implementation:
117 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 117 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
118 virtual void OnProcessLaunched() OVERRIDE; 118 virtual void OnProcessLaunched() OVERRIDE;
119 119
120 void OnResourcesReady(); 120 void OnResourcesReady();
121 121
122 // Enable the PPAPI proxy only for NaCl processes corresponding to a renderer.
123 bool enable_ppapi_proxy() { return render_view_id_ != 0; }
124
122 // Sends the reply message to the renderer who is waiting for the plugin 125 // Sends the reply message to the renderer who is waiting for the plugin
123 // to load. Returns true on success. 126 // to load. Returns true on success.
124 bool ReplyToRenderer(const IPC::ChannelHandle& channel_handle); 127 bool ReplyToRenderer(const IPC::ChannelHandle& channel_handle);
125 128
126 // Sends the message to the NaCl process to load the plugin. Returns true 129 // Sends the message to the NaCl process to load the plugin. Returns true
127 // on success. 130 // on success.
128 bool StartNaClExecution(); 131 bool StartNaClExecution();
129 132
130 // Called once all initialization is complete and the NaCl process is 133 // Called once all initialization is complete and the NaCl process is
131 // ready to go. Returns true on success. 134 // ready to go. Returns true on success.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 195
193 scoped_ptr<content::BrowserChildProcessHost> process_; 196 scoped_ptr<content::BrowserChildProcessHost> process_;
194 197
195 bool enable_exception_handling_; 198 bool enable_exception_handling_;
196 bool enable_debug_stub_; 199 bool enable_debug_stub_;
197 200
198 bool uses_irt_; 201 bool uses_irt_;
199 202
200 bool off_the_record_; 203 bool off_the_record_;
201 204
202 bool enable_ipc_proxy_;
203
204 // Channel proxy to terminate the NaCl-Browser PPAPI channel. 205 // Channel proxy to terminate the NaCl-Browser PPAPI channel.
205 scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_; 206 scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_;
206 // Plugin listener, to forward browser channel messages to us. 207 // Plugin listener, to forward browser channel messages to us.
207 PluginListener ipc_plugin_listener_; 208 PluginListener ipc_plugin_listener_;
208 // Browser host for plugin process. 209 // Browser host for plugin process.
209 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; 210 scoped_ptr<content::BrowserPpapiHost> ppapi_host_;
210 211
211 int render_view_id_; 212 int render_view_id_;
212 213
213 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 214 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
214 }; 215 };
215 216
216 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 217 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_browser.cc ('k') | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698