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

Unified Diff: content/renderer/browser_plugin/browser_plugin.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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index fdcc0098cf931b0a9c06b574daf9acbae5450289..ebcbd3ab8c797924889f28827003f22fba36afcb 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -58,7 +58,8 @@ BrowserPlugin::BrowserPlugin(
guest_crashed_(false),
resize_pending_(false),
navigate_src_sent_(false),
- parent_frame_(frame->identifier()) {
+ parent_frame_(frame->identifier()),
+ process_id_(-1) {
BrowserPluginManager::Get()->AddBrowserPlugin(instance_id, this);
bindings_.reset(new BrowserPluginBindings(this));
@@ -231,8 +232,9 @@ void BrowserPlugin::GuestCrashed() {
}
}
-void BrowserPlugin::DidNavigate(const GURL& url) {
+void BrowserPlugin::DidNavigate(const GURL& url, int process_id) {
src_ = url.spec();
+ process_id_ = process_id;
if (!HasListeners(kNavigationEventName))
return;
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698