diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 18:31:20 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 18:31:20 +0000 |
commit | bd11ba32a3a9844a15ed2a0c2cf6a4140c2853ae (patch) | |
tree | 32c018c626c1b6580224fdd8ff7b2cc7aeadcbab /chrome/common/plugin_messages.h | |
parent | 6f65cc3b4114080938c42bc1f3f55c0188f27163 (diff) | |
download | chromium_src-bd11ba32a3a9844a15ed2a0c2cf6a4140c2853ae.zip chromium_src-bd11ba32a3a9844a15ed2a0c2cf6a4140c2853ae.tar.gz chromium_src-bd11ba32a3a9844a15ed2a0c2cf6a4140c2853ae.tar.bz2 |
Add the page url to plugin crashes to aid debugging.
Review URL: http://codereview.chromium.org/149305
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_messages.h')
-rw-r--r-- | chrome/common/plugin_messages.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/plugin_messages.h b/chrome/common/plugin_messages.h index 111a7db..3b43b8b 100644 --- a/chrome/common/plugin_messages.h +++ b/chrome/common/plugin_messages.h @@ -32,6 +32,7 @@ struct PluginMsg_Init_Params { gfx::NativeViewId containing_window; GURL url; + GURL page_url; std::vector<std::string> arg_names; std::vector<std::string> arg_values; #if defined(OS_WIN) @@ -109,6 +110,7 @@ struct ParamTraits<PluginMsg_Init_Params> { static void Write(Message* m, const param_type& p) { WriteParam(m, p.containing_window); WriteParam(m, p.url); + WriteParam(m, p.page_url); DCHECK(p.arg_names.size() == p.arg_values.size()); WriteParam(m, p.arg_names); WriteParam(m, p.arg_values); @@ -120,6 +122,7 @@ struct ParamTraits<PluginMsg_Init_Params> { static bool Read(const Message* m, void** iter, param_type* p) { return ReadParam(m, iter, &p->containing_window) && ReadParam(m, iter, &p->url) && + ReadParam(m, iter, &p->page_url) && ReadParam(m, iter, &p->arg_names) && ReadParam(m, iter, &p->arg_values) && #if defined(OS_WIN) @@ -133,6 +136,8 @@ struct ParamTraits<PluginMsg_Init_Params> { l->append(L", "); LogParam(p.url, l); l->append(L", "); + LogParam(p.page_url, l); + l->append(L", "); LogParam(p.arg_names, l); l->append(L", "); LogParam(p.arg_values, l); |