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