summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index ebc7af4..b50b0d1 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -581,6 +581,9 @@ struct ViewHostMsg_TranslateTextParam {
// An id used to identify that specific translation.
int work_id;
+ // The id of the page this translation originated from.
+ int page_id;
+
// The text chunks that need to be translated.
std::vector<string16> text_chunks;
@@ -2457,6 +2460,7 @@ struct ParamTraits<ViewHostMsg_TranslateTextParam> {
static void Write(Message* m, const param_type& p) {
WriteParam(m, p.routing_id);
WriteParam(m, p.work_id);
+ WriteParam(m, p.page_id);
WriteParam(m, p.text_chunks);
WriteParam(m, p.from_language);
WriteParam(m, p.to_language);
@@ -2467,6 +2471,7 @@ struct ParamTraits<ViewHostMsg_TranslateTextParam> {
return
ReadParam(m, iter, &p->routing_id) &&
ReadParam(m, iter, &p->work_id) &&
+ ReadParam(m, iter, &p->page_id) &&
ReadParam(m, iter, &p->text_chunks) &&
ReadParam(m, iter, &p->from_language) &&
ReadParam(m, iter, &p->to_language) &&
@@ -2478,6 +2483,8 @@ struct ParamTraits<ViewHostMsg_TranslateTextParam> {
l->append(L", ");
LogParam(p.work_id, l);
l->append(L", ");
+ LogParam(p.page_id, l);
+ l->append(L", ");
LogParam(p.text_chunks, l);
l->append(L", ");
LogParam(p.from_language, l);