| 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_messages.h" | 7 #include "content/common/browser_plugin_messages.h" |
| 8 #include "content/renderer/browser_plugin/browser_plugin.h" | 8 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 9 #include "content/renderer/render_thread_impl.h" | 9 #include "content/renderer/render_thread_impl.h" |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 if (plugin) | 57 if (plugin) |
| 58 plugin->UpdateRect(message_id, params); | 58 plugin->UpdateRect(message_id, params); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void BrowserPluginManagerImpl::OnGuestCrashed(int instance_id) { | 61 void BrowserPluginManagerImpl::OnGuestCrashed(int instance_id) { |
| 62 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 62 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 63 if (plugin) | 63 if (plugin) |
| 64 plugin->GuestCrashed(); | 64 plugin->GuestCrashed(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void BrowserPluginManagerImpl::OnDidNavigate(int instance_id, | 67 void BrowserPluginManagerImpl::OnDidNavigate( |
| 68 const GURL& url, | 68 int instance_id, |
| 69 int process_id) { | 69 const BrowserPluginMsg_DidNavigate_Params& params) { |
| 70 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 70 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 71 if (plugin) | 71 if (plugin) |
| 72 plugin->DidNavigate(url, process_id); | 72 plugin->DidNavigate(params); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void BrowserPluginManagerImpl::OnAdvanceFocus(int instance_id, bool reverse) { | 75 void BrowserPluginManagerImpl::OnAdvanceFocus(int instance_id, bool reverse) { |
| 76 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 76 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 77 if (plugin) | 77 if (plugin) |
| 78 plugin->AdvanceFocus(reverse); | 78 plugin->AdvanceFocus(reverse); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void BrowserPluginManagerImpl::OnShouldAcceptTouchEvents(int instance_id, | 81 void BrowserPluginManagerImpl::OnShouldAcceptTouchEvents(int instance_id, |
| 82 bool accept) { | 82 bool accept) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 105 void BrowserPluginManagerImpl::OnLoadRedirect(int instance_id, | 105 void BrowserPluginManagerImpl::OnLoadRedirect(int instance_id, |
| 106 const GURL& old_url, | 106 const GURL& old_url, |
| 107 const GURL& new_url, | 107 const GURL& new_url, |
| 108 bool is_top_level) { | 108 bool is_top_level) { |
| 109 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 109 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 110 if (plugin) | 110 if (plugin) |
| 111 plugin->LoadRedirect(old_url, new_url, is_top_level); | 111 plugin->LoadRedirect(old_url, new_url, is_top_level); |
| 112 } | 112 } |
| 113 | 113 |
| 114 } // namespace content | 114 } // namespace content |
| OLD | NEW |