| 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_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); | 146 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); |
| 147 void OnPluginSetCursorVisibility(bool visible); | 147 void OnPluginSetCursorVisibility(bool visible); |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 bool CanShutdown() override; | 150 bool CanShutdown() override; |
| 151 void OnProcessCrashed(int exit_code) override; | 151 void OnProcessCrashed(int exit_code) override; |
| 152 | 152 |
| 153 void CancelRequests(); | 153 void CancelRequests(); |
| 154 | 154 |
| 155 // Callback for ResourceMessageFilter. | 155 // Callback for ResourceMessageFilter. |
| 156 void GetContexts(const ResourceHostMsg_Request& request, | 156 void GetContexts(ResourceType resource_type, |
| 157 int origin_pid, |
| 157 ResourceContext** resource_context, | 158 ResourceContext** resource_context, |
| 158 net::URLRequestContext** request_context); | 159 net::URLRequestContext** request_context); |
| 159 | 160 |
| 160 // These are channel requests that we are waiting to send to the | 161 // These are channel requests that we are waiting to send to the |
| 161 // plugin process once the channel is opened. | 162 // plugin process once the channel is opened. |
| 162 std::vector<Client*> pending_requests_; | 163 std::vector<Client*> pending_requests_; |
| 163 | 164 |
| 164 // These are the channel requests that we have already sent to | 165 // These are the channel requests that we have already sent to |
| 165 // the plugin process, but haven't heard back about yet. | 166 // the plugin process, but haven't heard back about yet. |
| 166 std::list<Client*> sent_requests_; | 167 std::list<Client*> sent_requests_; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> { | 207 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> { |
| 207 public: | 208 public: |
| 208 PluginProcessHostIterator() | 209 PluginProcessHostIterator() |
| 209 : BrowserChildProcessHostTypeIterator<PluginProcessHost>( | 210 : BrowserChildProcessHostTypeIterator<PluginProcessHost>( |
| 210 PROCESS_TYPE_PLUGIN) {} | 211 PROCESS_TYPE_PLUGIN) {} |
| 211 }; | 212 }; |
| 212 | 213 |
| 213 } // namespace content | 214 } // namespace content |
| 214 | 215 |
| 215 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 216 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |