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