| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // These are channel requests that we are waiting to send to the | 126 // These are channel requests that we are waiting to send to the |
| 127 // plugin process once the channel is opened. | 127 // plugin process once the channel is opened. |
| 128 std::vector<ChannelRequest> pending_requests_; | 128 std::vector<ChannelRequest> pending_requests_; |
| 129 | 129 |
| 130 // These are the channel requests that we have already sent to | 130 // These are the channel requests that we have already sent to |
| 131 // the plugin process, but haven't heard back about yet. | 131 // the plugin process, but haven't heard back about yet. |
| 132 std::vector<ChannelRequest> sent_requests_; | 132 std::vector<ChannelRequest> sent_requests_; |
| 133 | 133 |
| 134 // The handle to our plugin process. | 134 // The handle to our plugin process. |
| 135 Process process_; | 135 base::Process process_; |
| 136 | 136 |
| 137 // Used to watch the plugin process handle. | 137 // Used to watch the plugin process handle. |
| 138 base::ObjectWatcher watcher_; | 138 base::ObjectWatcher watcher_; |
| 139 | 139 |
| 140 // true while we're waiting the channel to be opened. In the meantime, | 140 // true while we're waiting the channel to be opened. In the meantime, |
| 141 // plugin instance requests will be buffered. | 141 // plugin instance requests will be buffered. |
| 142 bool opening_channel_; | 142 bool opening_channel_; |
| 143 | 143 |
| 144 // The IPC::Channel. | 144 // The IPC::Channel. |
| 145 scoped_ptr<IPC::Channel> channel_; | 145 scoped_ptr<IPC::Channel> channel_; |
| 146 | 146 |
| 147 // IPC Channel's id. | 147 // IPC Channel's id. |
| 148 std::wstring channel_id_; | 148 std::wstring channel_id_; |
| 149 | 149 |
| 150 // Path to the DLL of that plugin. | 150 // Path to the DLL of that plugin. |
| 151 std::wstring dll_path_; | 151 std::wstring dll_path_; |
| 152 | 152 |
| 153 PluginService* plugin_service_; | 153 PluginService* plugin_service_; |
| 154 | 154 |
| 155 ResourceDispatcherHost* resource_dispatcher_host_; | 155 ResourceDispatcherHost* resource_dispatcher_host_; |
| 156 | 156 |
| 157 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 157 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 160 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 161 | 161 |
| OLD | NEW |