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

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: Fixed Nits 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 fe3ff38f252a3087254fcd66393b179e4bba6a0b..4bd6545d5300dad31b524f7e610e34370f36f19f 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_(0) {
Charlie Reis 2012/09/21 00:24:06 -1, perhaps? I believe 0 refers to the browser pr
Fady Samuel 2012/09/21 14:48:46 Done.
BrowserPluginManager::Get()->AddBrowserPlugin(instance_id, this);
bindings_.reset(new BrowserPluginBindings(this));
@@ -214,8 +215,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;

Powered by Google App Engine
This is Rietveld 408576698