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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #endif | 71 #endif |
72 | 72 |
73 bool Send(IPC::Message* msg); | 73 bool Send(IPC::Message* msg); |
74 | 74 |
75 content::BrowserChildProcessHost* process() { return process_.get(); } | 75 content::BrowserChildProcessHost* process() { return process_.get(); } |
76 content::BrowserPpapiHost* browser_ppapi_host() { return ppapi_host_.get(); } | 76 content::BrowserPpapiHost* browser_ppapi_host() { return ppapi_host_.get(); } |
77 | 77 |
78 private: | 78 private: |
79 friend class PluginListener; | 79 friend class PluginListener; |
80 | 80 |
81 // Internal class that holds the nacl::Handle objecs so that | 81 // Internal class that holds the NaClHandle objecs so that |
82 // nacl_process_host.h doesn't include NaCl headers. Needed since it's | 82 // nacl_process_host.h doesn't include NaCl headers. Needed since it's |
83 // included by src\content, which can't depend on the NaCl gyp file because it | 83 // included by src\content, which can't depend on the NaCl gyp file because it |
84 // depends on chrome.gyp (circular dependency). | 84 // depends on chrome.gyp (circular dependency). |
85 struct NaClInternal; | 85 struct NaClInternal; |
86 | 86 |
87 // PluginListener that forwards any messages from untrusted code that aren't | 87 // PluginListener that forwards any messages from untrusted code that aren't |
88 // handled by the PepperMessageFilter to us. | 88 // handled by the PepperMessageFilter to us. |
89 class PluginListener : public IPC::Listener { | 89 class PluginListener : public IPC::Listener { |
90 public: | 90 public: |
91 explicit PluginListener(NaClProcessHost* host); | 91 explicit PluginListener(NaClProcessHost* host); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 PluginListener ipc_plugin_listener_; | 208 PluginListener ipc_plugin_listener_; |
209 // Browser host for plugin process. | 209 // Browser host for plugin process. |
210 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; | 210 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; |
211 | 211 |
212 int render_view_id_; | 212 int render_view_id_; |
213 | 213 |
214 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 214 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
215 }; | 215 }; |
216 | 216 |
217 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 217 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
OLD | NEW |