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 18 matching lines...) Expand all Loading... |
29 struct PepperPluginInfo; | 29 struct PepperPluginInfo; |
30 | 30 |
31 // Process host for PPAPI plugin and broker processes. | 31 // Process host for PPAPI plugin and broker processes. |
32 // When used for the broker, interpret all references to "plugin" with "broker". | 32 // When used for the broker, interpret all references to "plugin" with "broker". |
33 class PpapiPluginProcessHost : public BrowserChildProcessHostDelegate, | 33 class PpapiPluginProcessHost : public BrowserChildProcessHostDelegate, |
34 public IPC::Sender { | 34 public IPC::Sender { |
35 public: | 35 public: |
36 class Client { | 36 class Client { |
37 public: | 37 public: |
38 // Gets the information about the renderer that's requesting the channel. | 38 // Gets the information about the renderer that's requesting the channel. |
| 39 // If |renderer_handle| is base::kNullProcessHandle, this channel is used by |
| 40 // the browser itself. |
39 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, | 41 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, |
40 int* renderer_id) = 0; | 42 int* renderer_id) = 0; |
41 | 43 |
42 // Called when the channel is asynchronously opened to the plugin or on | 44 // Called when the channel is asynchronously opened to the plugin or on |
43 // error. On error, the parameters should be: | 45 // error. On error, the parameters should be: |
44 // base::kNullProcessHandle | 46 // base::kNullProcessHandle |
45 // IPC::ChannelHandle(), | 47 // IPC::ChannelHandle(), |
46 // 0 | 48 // 0 |
47 virtual void OnPpapiChannelOpened( | 49 virtual void OnPpapiChannelOpened( |
48 const IPC::ChannelHandle& channel_handle, | 50 const IPC::ChannelHandle& channel_handle, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 public: | 197 public: |
196 PpapiBrokerProcessHostIterator() | 198 PpapiBrokerProcessHostIterator() |
197 : BrowserChildProcessHostTypeIterator< | 199 : BrowserChildProcessHostTypeIterator< |
198 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 200 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
199 }; | 201 }; |
200 | 202 |
201 } // namespace content | 203 } // namespace content |
202 | 204 |
203 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 205 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
204 | 206 |
OLD | NEW |