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

Unified Diff: chrome/plugin/npobject_proxy.h

Issue 155238: Add the page url to plugin crashes to aid debugging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « chrome/common/plugin_messages.h ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/npobject_proxy.h
===================================================================
--- chrome/plugin/npobject_proxy.h (revision 20181)
+++ chrome/plugin/npobject_proxy.h (working copy)
@@ -10,6 +10,7 @@
#include "base/ref_counted.h"
#include "chrome/common/ipc_channel.h"
+#include "googleurl/src/gurl.h"
#include "third_party/npapi/bindings/npruntime.h"
class PluginChannelBase;
@@ -36,7 +37,8 @@
static NPObject* Create(PluginChannelBase* channel,
int route_id,
intptr_t npobject_ptr,
- base::WaitableEvent* modal_dialog_event);
+ base::WaitableEvent* modal_dialog_event,
+ const GURL& page_url);
// IPC::Message::Sender implementation:
bool Send(IPC::Message* msg);
@@ -101,7 +103,8 @@
NPObjectProxy(PluginChannelBase* channel,
int route_id,
intptr_t npobject_ptr,
- base::WaitableEvent* modal_dialog_event);
+ base::WaitableEvent* modal_dialog_event,
+ const GURL& page_url);
// IPC::Channel::Listener implementation:
void OnMessageReceived(const IPC::Message& msg);
@@ -118,6 +121,9 @@
int route_id_;
intptr_t npobject_ptr_;
base::WaitableEvent* modal_dialog_event_;
+
+ // The url of the main frame hosting the plugin.
+ GURL page_url_;
};
#endif // CHROME_PLUGIN_NPOBJECT_PROXY_H_
« no previous file with comments | « chrome/common/plugin_messages.h ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698