| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 if (plugin) | 52 if (plugin) |
| 53 plugin->UpdateRect(message_id, params); | 53 plugin->UpdateRect(message_id, params); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void BrowserPluginManagerImpl::OnGuestCrashed(int instance_id) { | 56 void BrowserPluginManagerImpl::OnGuestCrashed(int instance_id) { |
| 57 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 57 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 58 if (plugin) | 58 if (plugin) |
| 59 plugin->GuestCrashed(); | 59 plugin->GuestCrashed(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void BrowserPluginManagerImpl::OnDidNavigate(int instance_id, const GURL& url) { | 62 void BrowserPluginManagerImpl::OnDidNavigate(int instance_id, |
| 63 const GURL& url, |
| 64 int process_id) { |
| 63 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 65 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 64 if (plugin) | 66 if (plugin) |
| 65 plugin->DidNavigate(url); | 67 plugin->DidNavigate(url, process_id); |
| 66 } | 68 } |
| 67 | 69 |
| 68 void BrowserPluginManagerImpl::OnAdvanceFocus(int instance_id, bool reverse) { | 70 void BrowserPluginManagerImpl::OnAdvanceFocus(int instance_id, bool reverse) { |
| 69 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); | 71 BrowserPlugin* plugin = GetBrowserPlugin(instance_id); |
| 70 if (plugin) | 72 if (plugin) |
| 71 plugin->AdvanceFocus(reverse); | 73 plugin->AdvanceFocus(reverse); |
| 72 } | 74 } |
| 73 | 75 |
| 74 } // namespace content | 76 } // namespace content |
| OLD | NEW |