| 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/browser/browser_plugin/browser_plugin_embedder.h" | 5 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // CleanUp gets called when BrowserPluginEmbedder's WebContents goes away | 225 // CleanUp gets called when BrowserPluginEmbedder's WebContents goes away |
| 226 // or the associated RenderViewHost is destroyed or swapped out. Therefore we | 226 // or the associated RenderViewHost is destroyed or swapped out. Therefore we |
| 227 // don't need to care about the pending callbacks anymore. | 227 // don't need to care about the pending callbacks anymore. |
| 228 pending_get_render_view_callbacks_.clear(); | 228 pending_get_render_view_callbacks_.clear(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 // static | 231 // static |
| 232 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( | 232 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( |
| 233 const IPC::Message& message) { | 233 const IPC::Message& message) { |
| 234 switch (message.type()) { | 234 switch (message.type()) { |
| 235 case BrowserPluginHostMsg_AllowPermission::ID: |
| 235 case BrowserPluginHostMsg_BuffersSwappedACK::ID: | 236 case BrowserPluginHostMsg_BuffersSwappedACK::ID: |
| 236 case BrowserPluginHostMsg_DragStatusUpdate::ID: | 237 case BrowserPluginHostMsg_DragStatusUpdate::ID: |
| 237 case BrowserPluginHostMsg_Go::ID: | 238 case BrowserPluginHostMsg_Go::ID: |
| 238 case BrowserPluginHostMsg_HandleInputEvent::ID: | 239 case BrowserPluginHostMsg_HandleInputEvent::ID: |
| 239 case BrowserPluginHostMsg_NavigateGuest::ID: | 240 case BrowserPluginHostMsg_NavigateGuest::ID: |
| 240 case BrowserPluginHostMsg_Reload::ID: | 241 case BrowserPluginHostMsg_Reload::ID: |
| 241 case BrowserPluginHostMsg_ResizeGuest::ID: | 242 case BrowserPluginHostMsg_ResizeGuest::ID: |
| 242 case BrowserPluginHostMsg_SetAutoSize::ID: | 243 case BrowserPluginHostMsg_SetAutoSize::ID: |
| 243 case BrowserPluginHostMsg_SetFocus::ID: | 244 case BrowserPluginHostMsg_SetFocus::ID: |
| 244 case BrowserPluginHostMsg_SetName::ID: | 245 case BrowserPluginHostMsg_SetName::ID: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 int gpu_host_id, | 296 int gpu_host_id, |
| 296 const std::string& mailbox_name, | 297 const std::string& mailbox_name, |
| 297 uint32 sync_point) { | 298 uint32 sync_point) { |
| 298 BrowserPluginGuest::AcknowledgeBufferPresent(route_id, | 299 BrowserPluginGuest::AcknowledgeBufferPresent(route_id, |
| 299 gpu_host_id, | 300 gpu_host_id, |
| 300 mailbox_name, | 301 mailbox_name, |
| 301 sync_point); | 302 sync_point); |
| 302 } | 303 } |
| 303 | 304 |
| 304 } // namespace content | 305 } // namespace content |
| OLD | NEW |