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

Unified Diff: chrome/common/render_messages.h

Issue 552216: This CL makes the TranslationService class send the text to be translated to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
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);

Powered by Google App Engine
This is Rietveld 408576698