|
This CL makes the TranslationService class send the text to be translated to the translation
server. It groups requests as to limit the number of requests sent to the server.
Also this CL adds a flag to automatically turn on translation on pages that are not in the
language Chrome is configured in.
BUG=None
TEST=Run the unit-tests. Add the --auto-translate flag then navigate to pages in a language
which is not the language Chrome is configured. They should get translated.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37479
Total comments: 58
Total comments: 12
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1218 lines, -33 lines) |
Patch |
 |
M |
chrome/browser/net/test_url_fetcher_factory.h
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/url_fetcher.h
|
View
|
1
2
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/url_fetcher.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_process_host.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_view_host.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_view_host.cc
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/resource_message_filter.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/translation_service.h
|
View
|
1
2
3
4
|
1 chunk |
+132 lines, -8 lines |
4 comments
|
Download
|
 |
|
chrome/browser/renderer_host/translation_service.cc
|
View
|
1
2
3
4
|
1 chunk |
+532 lines, -14 lines |
8 comments
|
Download
|
 |
A |
chrome/browser/renderer_host/translation_service_unittest.cc
|
View
|
1
2
|
1 chunk |
+458 lines, -0 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/tab_contents.cc
|
View
|
1
2
|
2 chunks |
+14 lines, -0 lines |
1 comment
|
Download
|
 |
|
chrome/chrome_tests.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/render_messages.h
|
View
|
|
4 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
|
chrome/common/render_messages_internal.h
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_view.h
|
View
|
1
2
|
2 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_view.cc
|
View
|
1
2
3
|
2 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/translate/page_translator.cc
|
View
|
1
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/translate/text_translator_impl.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|