diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 21:40:55 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 21:40:55 +0000 |
commit | ef9162785c55957324e72f737bb9b6b2406053dd (patch) | |
tree | d8c4b934a957eff37caffa911c91066fe27e04fb /chrome/plugin/npobject_proxy.h | |
parent | 9e6f8526f9a60410b6d448103a9015d72a067deb (diff) | |
download | chromium_src-ef9162785c55957324e72f737bb9b6b2406053dd.zip chromium_src-ef9162785c55957324e72f737bb9b6b2406053dd.tar.gz chromium_src-ef9162785c55957324e72f737bb9b6b2406053dd.tar.bz2 |
Add the page url to plugin crashes to aid debugging.
Review URL: http://codereview.chromium.org/155238
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/npobject_proxy.h')
-rw-r--r-- | chrome/plugin/npobject_proxy.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/plugin/npobject_proxy.h b/chrome/plugin/npobject_proxy.h index 3cdae9e..afeb207 100644 --- a/chrome/plugin/npobject_proxy.h +++ b/chrome/plugin/npobject_proxy.h @@ -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 @@ class NPObjectProxy : public IPC::Channel::Listener, 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 @@ class NPObjectProxy : public IPC::Channel::Listener, 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 @@ class NPObjectProxy : public IPC::Channel::Listener, 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_ |