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 <string> | 8 #include <string> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 virtual void OnChannelError() OVERRIDE; | 117 virtual void OnChannelError() OVERRIDE; |
118 | 118 |
119 void CancelRequests(); | 119 void CancelRequests(); |
120 | 120 |
121 // IPC message handlers. | 121 // IPC message handlers. |
122 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); | 122 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); |
123 | 123 |
124 // Handles most requests from the plugin. May be NULL. | 124 // Handles most requests from the plugin. May be NULL. |
125 scoped_refptr<PepperMessageFilter> filter_; | 125 scoped_refptr<PepperMessageFilter> filter_; |
126 | 126 |
127 scoped_ptr<content::BrowserPpapiHostImpl> host_impl_; | 127 scoped_refptr<content::BrowserPpapiHostImpl> host_impl_; |
128 | 128 |
129 // Handles filesystem requests from flash plugins. May be NULL. | 129 // Handles filesystem requests from flash plugins. May be NULL. |
130 scoped_refptr<PepperFileMessageFilter> file_filter_; | 130 scoped_refptr<PepperFileMessageFilter> file_filter_; |
131 | 131 |
132 // Observes network changes. May be NULL. | 132 // Observes network changes. May be NULL. |
133 scoped_ptr<PluginNetworkObserver> network_observer_; | 133 scoped_ptr<PluginNetworkObserver> network_observer_; |
134 | 134 |
135 // Channel requests that we are waiting to send to the plugin process once | 135 // Channel requests that we are waiting to send to the plugin process once |
136 // the channel is opened. | 136 // the channel is opened. |
137 std::vector<Client*> pending_requests_; | 137 std::vector<Client*> pending_requests_; |
(...skipping 28 matching lines...) Expand all Loading... |
166 : public content::BrowserChildProcessHostTypeIterator< | 166 : public content::BrowserChildProcessHostTypeIterator< |
167 PpapiPluginProcessHost> { | 167 PpapiPluginProcessHost> { |
168 public: | 168 public: |
169 PpapiBrokerProcessHostIterator() | 169 PpapiBrokerProcessHostIterator() |
170 : content::BrowserChildProcessHostTypeIterator< | 170 : content::BrowserChildProcessHostTypeIterator< |
171 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} | 171 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} |
172 }; | 172 }; |
173 | 173 |
174 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 174 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
175 | 175 |
OLD | NEW |