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 CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 std::queue<Client*> sent_requests_; | 170 std::queue<Client*> sent_requests_; |
171 | 171 |
172 // Path to the plugin library. | 172 // Path to the plugin library. |
173 base::FilePath plugin_path_; | 173 base::FilePath plugin_path_; |
174 | 174 |
175 // Path to the top-level plugin data directory (differs based upon profile). | 175 // Path to the top-level plugin data directory (differs based upon profile). |
176 base::FilePath profile_data_directory_; | 176 base::FilePath profile_data_directory_; |
177 | 177 |
178 const bool is_broker_; | 178 const bool is_broker_; |
179 | 179 |
| 180 // A random token used to identify the child process to Mojo. |
| 181 const std::string mojo_child_token_; |
| 182 |
180 std::unique_ptr<BrowserChildProcessHostImpl> process_; | 183 std::unique_ptr<BrowserChildProcessHostImpl> process_; |
181 | 184 |
182 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 185 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
183 }; | 186 }; |
184 | 187 |
185 class PpapiPluginProcessHostIterator | 188 class PpapiPluginProcessHostIterator |
186 : public BrowserChildProcessHostTypeIterator< | 189 : public BrowserChildProcessHostTypeIterator< |
187 PpapiPluginProcessHost> { | 190 PpapiPluginProcessHost> { |
188 public: | 191 public: |
189 PpapiPluginProcessHostIterator() | 192 PpapiPluginProcessHostIterator() |
190 : BrowserChildProcessHostTypeIterator< | 193 : BrowserChildProcessHostTypeIterator< |
191 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_PLUGIN) {} | 194 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_PLUGIN) {} |
192 }; | 195 }; |
193 | 196 |
194 class PpapiBrokerProcessHostIterator | 197 class PpapiBrokerProcessHostIterator |
195 : public BrowserChildProcessHostTypeIterator< | 198 : public BrowserChildProcessHostTypeIterator< |
196 PpapiPluginProcessHost> { | 199 PpapiPluginProcessHost> { |
197 public: | 200 public: |
198 PpapiBrokerProcessHostIterator() | 201 PpapiBrokerProcessHostIterator() |
199 : BrowserChildProcessHostTypeIterator< | 202 : BrowserChildProcessHostTypeIterator< |
200 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 203 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
201 }; | 204 }; |
202 | 205 |
203 } // namespace content | 206 } // namespace content |
204 | 207 |
205 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 208 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
206 | 209 |
OLD | NEW |