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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" | 15 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" |
| 16 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h" |
16 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 17 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
17 #include "content/public/browser/browser_child_process_host_delegate.h" | 18 #include "content/public/browser/browser_child_process_host_delegate.h" |
18 #include "content/public/browser/browser_child_process_host_iterator.h" | 19 #include "content/public/browser/browser_child_process_host_iterator.h" |
19 #include "ipc/ipc_sender.h" | 20 #include "ipc/ipc_sender.h" |
20 #include "ppapi/shared_impl/ppapi_permissions.h" | 21 #include "ppapi/shared_impl/ppapi_permissions.h" |
21 | 22 |
22 namespace net { | 23 namespace net { |
23 class HostResolver; | 24 class HostResolver; |
24 } | 25 } |
25 | 26 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 133 |
133 // IPC message handlers. | 134 // IPC message handlers. |
134 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); | 135 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); |
135 | 136 |
136 // Handles most requests from the plugin. May be NULL. | 137 // Handles most requests from the plugin. May be NULL. |
137 scoped_refptr<PepperMessageFilter> filter_; | 138 scoped_refptr<PepperMessageFilter> filter_; |
138 | 139 |
139 ppapi::PpapiPermissions permissions_; | 140 ppapi::PpapiPermissions permissions_; |
140 scoped_ptr<BrowserPpapiHostImpl> host_impl_; | 141 scoped_ptr<BrowserPpapiHostImpl> host_impl_; |
141 | 142 |
| 143 // Handles filesystem requests from flash plugins. May be NULL. |
| 144 scoped_refptr<PepperFileMessageFilter> file_filter_; |
| 145 |
142 // Observes network changes. May be NULL. | 146 // Observes network changes. May be NULL. |
143 scoped_ptr<PluginNetworkObserver> network_observer_; | 147 scoped_ptr<PluginNetworkObserver> network_observer_; |
144 | 148 |
145 // Channel requests that we are waiting to send to the plugin process once | 149 // Channel requests that we are waiting to send to the plugin process once |
146 // the channel is opened. | 150 // the channel is opened. |
147 std::vector<Client*> pending_requests_; | 151 std::vector<Client*> pending_requests_; |
148 | 152 |
149 // Channel requests that we have already sent to the plugin process, but | 153 // Channel requests that we have already sent to the plugin process, but |
150 // haven't heard back about yet. | 154 // haven't heard back about yet. |
151 std::queue<Client*> sent_requests_; | 155 std::queue<Client*> sent_requests_; |
(...skipping 26 matching lines...) Expand all Loading... |
178 public: | 182 public: |
179 PpapiBrokerProcessHostIterator() | 183 PpapiBrokerProcessHostIterator() |
180 : BrowserChildProcessHostTypeIterator< | 184 : BrowserChildProcessHostTypeIterator< |
181 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 185 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
182 }; | 186 }; |
183 | 187 |
184 } // namespace content | 188 } // namespace content |
185 | 189 |
186 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 190 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
187 | 191 |
OLD | NEW |