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 | |
183 std::unique_ptr<BrowserChildProcessHostImpl> process_; | 180 std::unique_ptr<BrowserChildProcessHostImpl> process_; |
184 | 181 |
185 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 182 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
186 }; | 183 }; |
187 | 184 |
188 class PpapiPluginProcessHostIterator | 185 class PpapiPluginProcessHostIterator |
189 : public BrowserChildProcessHostTypeIterator< | 186 : public BrowserChildProcessHostTypeIterator< |
190 PpapiPluginProcessHost> { | 187 PpapiPluginProcessHost> { |
191 public: | 188 public: |
192 PpapiPluginProcessHostIterator() | 189 PpapiPluginProcessHostIterator() |
193 : BrowserChildProcessHostTypeIterator< | 190 : BrowserChildProcessHostTypeIterator< |
194 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_PLUGIN) {} | 191 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_PLUGIN) {} |
195 }; | 192 }; |
196 | 193 |
197 class PpapiBrokerProcessHostIterator | 194 class PpapiBrokerProcessHostIterator |
198 : public BrowserChildProcessHostTypeIterator< | 195 : public BrowserChildProcessHostTypeIterator< |
199 PpapiPluginProcessHost> { | 196 PpapiPluginProcessHost> { |
200 public: | 197 public: |
201 PpapiBrokerProcessHostIterator() | 198 PpapiBrokerProcessHostIterator() |
202 : BrowserChildProcessHostTypeIterator< | 199 : BrowserChildProcessHostTypeIterator< |
203 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 200 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
204 }; | 201 }; |
205 | 202 |
206 } // namespace content | 203 } // namespace content |
207 | 204 |
208 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 205 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
209 | 206 |
OLD | NEW |