Index: chrome/common/render_messages.h |
=================================================================== |
--- chrome/common/render_messages.h (revision 37411) |
+++ chrome/common/render_messages.h (working copy) |
@@ -581,6 +581,9 @@ |
// 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 @@ |
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 @@ |
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 @@ |
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); |