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

Unified Diff: chrome/common/plugin_messages.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/chrome.gyp ('k') | chrome/plugin/npobject_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/plugin_messages.h
===================================================================
--- chrome/common/plugin_messages.h (revision 20181)
+++ chrome/common/plugin_messages.h (working copy)
@@ -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 @@
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 @@
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 @@
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);
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/plugin/npobject_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698