Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager_impl.cc

Issue 10965017: Browser Plugin: Implement getProcessId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698