OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // error. On error, the parameters should be: | 43 // error. On error, the parameters should be: |
44 // base::kNullProcessHandle | 44 // base::kNullProcessHandle |
45 // IPC::ChannelHandle() | 45 // IPC::ChannelHandle() |
46 virtual void OnChannelOpened(base::ProcessHandle plugin_process_handle, | 46 virtual void OnChannelOpened(base::ProcessHandle plugin_process_handle, |
47 const IPC::ChannelHandle& channel_handle) = 0; | 47 const IPC::ChannelHandle& channel_handle) = 0; |
48 }; | 48 }; |
49 | 49 |
50 class PluginClient : public Client { | 50 class PluginClient : public Client { |
51 public: | 51 public: |
52 // Returns the resource context for the renderer requesting the channel. | 52 // Returns the resource context for the renderer requesting the channel. |
53 virtual const content::ResourceContext* GetResourceContext() = 0; | 53 virtual content::ResourceContext* GetResourceContext() = 0; |
54 }; | 54 }; |
55 | 55 |
56 class BrokerClient : public Client { | 56 class BrokerClient : public Client { |
57 }; | 57 }; |
58 | 58 |
59 virtual ~PpapiPluginProcessHost(); | 59 virtual ~PpapiPluginProcessHost(); |
60 | 60 |
61 static PpapiPluginProcessHost* CreatePluginHost( | 61 static PpapiPluginProcessHost* CreatePluginHost( |
62 const content::PepperPluginInfo& info, | 62 const content::PepperPluginInfo& info, |
63 net::HostResolver* host_resolver); | 63 net::HostResolver* host_resolver); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 : public content::BrowserChildProcessHostTypeIterator< | 140 : public content::BrowserChildProcessHostTypeIterator< |
141 PpapiPluginProcessHost> { | 141 PpapiPluginProcessHost> { |
142 public: | 142 public: |
143 PpapiBrokerProcessHostIterator() | 143 PpapiBrokerProcessHostIterator() |
144 : content::BrowserChildProcessHostTypeIterator< | 144 : content::BrowserChildProcessHostTypeIterator< |
145 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} | 145 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} |
146 }; | 146 }; |
147 | 147 |
148 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 148 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
149 | 149 |
OLD | NEW |