| 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 #include "content/renderer/browser_plugin/browser_plugin_manager_impl.h" | 5 #include "content/renderer/browser_plugin/browser_plugin_manager_impl.h" |
| 6 | 6 |
| 7 #include "content/common/browser_plugin/browser_plugin_constants.h" | 7 #include "content/common/browser_plugin/browser_plugin_constants.h" |
| 8 #include "content/common/browser_plugin/browser_plugin_messages.h" | 8 #include "content/common/browser_plugin/browser_plugin_messages.h" |
| 9 #include "content/renderer/browser_plugin/browser_plugin.h" | 9 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 it.Advance(); | 93 it.Advance(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 Send(new BrowserPluginHostMsg_PluginAtPositionResponse( | 96 Send(new BrowserPluginHostMsg_PluginAtPositionResponse( |
| 97 message.routing_id(), instance_id, request_id, local_position)); | 97 message.routing_id(), instance_id, request_id, local_position)); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void BrowserPluginManagerImpl::OnUnhandledSwap(const IPC::Message& message, | 100 void BrowserPluginManagerImpl::OnUnhandledSwap(const IPC::Message& message, |
| 101 int instance_id, | 101 int instance_id, |
| 102 const gfx::Size& size, | 102 const gfx::Size& size, |
| 103 gpu::Mailbox mailbox_name, | 103 std::string mailbox_name, |
| 104 int gpu_route_id, | 104 int gpu_route_id, |
| 105 int gpu_host_id) { | 105 int gpu_host_id) { |
| 106 // After the BrowserPlugin object sends a destroy message to the | 106 // After the BrowserPlugin object sends a destroy message to the |
| 107 // guest, it goes away and is unable to handle messages that | 107 // guest, it goes away and is unable to handle messages that |
| 108 // might still be coming from the guest. | 108 // might still be coming from the guest. |
| 109 // In this case, we might receive a BuffersSwapped message that | 109 // In this case, we might receive a BuffersSwapped message that |
| 110 // we need to ACK. | 110 // we need to ACK. |
| 111 // Issue is tracked in crbug.com/170745. | 111 // Issue is tracked in crbug.com/170745. |
| 112 Send(new BrowserPluginHostMsg_BuffersSwappedACK( | 112 Send(new BrowserPluginHostMsg_BuffersSwappedACK( |
| 113 message.routing_id(), | 113 message.routing_id(), |
| 114 instance_id, | 114 instance_id, |
| 115 gpu_route_id, | 115 gpu_route_id, |
| 116 gpu_host_id, | 116 gpu_host_id, |
| 117 mailbox_name, | 117 mailbox_name, |
| 118 0)); | 118 0)); |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace content | 121 } // namespace content |
| OLD | NEW |