summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 22:31:42 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 22:31:42 +0000
commite6c798140918c7f2dac77528fb13ed94b14979f4 (patch)
treeccb440c0ffc62c526e5f1cc62932f4af8ab66f1e /chrome/common/render_messages.h
parent03b1575eb9349ad2c7563ea0caef88da0906537e (diff)
downloadchromium_src-e6c798140918c7f2dac77528fb13ed94b14979f4.zip
chromium_src-e6c798140918c7f2dac77528fb13ed94b14979f4.tar.gz
chromium_src-e6c798140918c7f2dac77528fb13ed94b14979f4.tar.bz2
Always enable copy-link-address in context menu.
Added a new field into ContextMenuParam only for this purpose. The new field won't be validated in frontend processes. In this way, even if renderer processes are going to mad, the frontend would be OK if the frontend uses this new field only for copying into the clipboard. Fix checked in for Shinichiro Hamaji Original code review: http://codereview.chromium.org/91002 BUG=2725 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index e4743a0..624dc0b 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -855,6 +855,7 @@ struct ParamTraits<ContextMenuParams> {
WriteParam(m, p.x);
WriteParam(m, p.y);
WriteParam(m, p.link_url);
+ WriteParam(m, p.unfiltered_link_url);
WriteParam(m, p.image_url);
WriteParam(m, p.page_url);
WriteParam(m, p.frame_url);
@@ -871,6 +872,7 @@ struct ParamTraits<ContextMenuParams> {
ReadParam(m, iter, &p->x) &&
ReadParam(m, iter, &p->y) &&
ReadParam(m, iter, &p->link_url) &&
+ ReadParam(m, iter, &p->unfiltered_link_url) &&
ReadParam(m, iter, &p->image_url) &&
ReadParam(m, iter, &p->page_url) &&
ReadParam(m, iter, &p->frame_url) &&