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

Issue 10854245: In-te-grate hy-phen-ator to con-tent. (Closed)

Created:
8 years, 4 months ago by Hironori Bono
Modified:
8 years, 3 months ago
Reviewers:
tony, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

In-te-grate hy-phen-ator to con-tent. This change integrates the Hyphenator class to content so Chrome can use it. This change basically consists of two parts: * Adds a couple of IPC messages so a renderer asks a browser to open hyphenation dictionaries; * Adds a HyphenatorMessageFilter class, which opens hyphenation dictionaries in a browser process; * Changes the Hyphenator class to send IPC messages to open hyphenation dictionaries. BUG=47083 TEST=HyphenatorTest.SetDictionary,HyphenatorMessageFilterTest.OpenDictionary Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154663

Patch Set 1 : #

Patch Set 2 : #

Total comments: 27

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+599 lines, -7 lines) Patch
A content/browser/hyphenator/hyphenator_message_filter.h View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
A content/browser/hyphenator/hyphenator_message_filter.cc View 1 1 chunk +110 lines, -0 lines 0 comments Download
A content/browser/hyphenator/hyphenator_message_filter_unittest.cc View 1 1 chunk +154 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A content/common/hyphenator_messages.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/public/test/mock_render_thread.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 2 3 4 1 chunk +12 lines, -1 line 0 comments Download
M content/renderer/hyphenator/hyphenator.h View 1 2 3 4 2 chunks +18 lines, -2 lines 0 comments Download
M content/renderer/hyphenator/hyphenator.cc View 1 2 3 4 3 chunks +50 lines, -1 line 0 comments Download
M content/renderer/hyphenator/hyphenator_unittest.cc View 1 2 3 4 3 chunks +99 lines, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 2 chunks +33 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Hironori Bono
Greetings John and Tony, Sorry for suddenly sending a big change. I have integrated the ...
8 years, 4 months ago (2012-08-22 09:39:52 UTC) #1
tony
http://codereview.chromium.org/10854245/diff/16019/content/browser/hyphenator/hyphenator_message_filter.cc File content/browser/hyphenator/hyphenator_message_filter.cc (right): http://codereview.chromium.org/10854245/diff/16019/content/browser/hyphenator/hyphenator_message_filter.cc#newcode32 content/browser/hyphenator/hyphenator_message_filter.cc:32: : render_process_host_(render_process_host), Rather than passing in RenderProcessHost*, can we ...
8 years, 4 months ago (2012-08-22 19:05:50 UTC) #2
tony
Seems OK overall. John should take a look too since it's been a long time ...
8 years, 4 months ago (2012-08-22 19:06:33 UTC) #3
jam
http://codereview.chromium.org/10854245/diff/16019/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): http://codereview.chromium.org/10854245/diff/16019/content/browser/renderer_host/render_process_host_impl.cc#newcode613 content/browser/renderer_host/render_process_host_impl.cc:613: channel_->AddFilter(new content::HyphenatorMessageFilter(this)); nit: content:: unnecessary (can also remove in ...
8 years, 4 months ago (2012-08-23 21:34:29 UTC) #4
Hironori Bono
Greetings Tony and John, Thank you for your review and comments. I have applied your ...
8 years, 3 months ago (2012-08-27 06:57:27 UTC) #5
jam
lgtm http://codereview.chromium.org/10854245/diff/16019/content/renderer/hyphenator/hyphenator.h File content/renderer/hyphenator/hyphenator.h (right): http://codereview.chromium.org/10854245/diff/16019/content/renderer/hyphenator/hyphenator.h#newcode42 content/renderer/hyphenator/hyphenator.h:42: bool Attach(content::RenderThread* thread, const string16& locale); On 2012/08/27 ...
8 years, 3 months ago (2012-08-27 16:31:10 UTC) #6
tony
LGTM2 http://codereview.chromium.org/10854245/diff/27043/content/common/hyphenator_messages.h File content/common/hyphenator_messages.h (right): http://codereview.chromium.org/10854245/diff/27043/content/common/hyphenator_messages.h#newcode13 content/common/hyphenator_messages.h:13: // Opens the specified hyphnation dictionary. This message ...
8 years, 3 months ago (2012-08-27 18:17:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hbono@chromium.org/10854245/21044
8 years, 3 months ago (2012-08-28 06:53:58 UTC) #8
Hironori Bono
Greetings Tony and John, Thank you for your review and comments. I have updated this ...
8 years, 3 months ago (2012-08-28 06:54:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hbono@chromium.org/10854245/21044
8 years, 3 months ago (2012-08-29 02:39:47 UTC) #10
commit-bot: I haz the power
Try job failure for 10854245-21044 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-29 03:53:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hbono@chromium.org/10854245/21044
8 years, 3 months ago (2012-08-29 04:10:01 UTC) #12
commit-bot: I haz the power
Try job failure for 10854245-21044 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-29 05:34:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hbono@chromium.org/10854245/47001
8 years, 3 months ago (2012-09-03 03:56:22 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-09-03 06:39:03 UTC) #15
Change committed as 154663

Powered by Google App Engine
This is Rietveld 408576698