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

Issue 10273006: Introduced SpeechRecognitionDispatcher(Host) classes, handling dispatch of IPC messages for continu… (Closed)

Created:
8 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
8 years, 7 months ago
Reviewers:
hans, Satish, jam, dmazzoni
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, Satish, jam, dmazzoni
Visibility:
Public.

Description

Introduced SpeechRecognitionDispatcher(Host) classes, handling dispatch of IPC messages for continuous speech recognition. (Speech CL2.1) BUG=116954 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138801 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139015

Patch Set 1 : #

Total comments: 56

Patch Set 2 : Fixed according to Hans review. #

Total comments: 2

Patch Set 3 : Rebased + Hans nits #

Patch Set 4 : Hans Review + rebase #

Patch Set 5 : Minor fix after trybot failure #

Patch Set 6 : Fixed ENABLE_INPUT_SPEECH define guards #

Patch Set 7 : Small fix (forgot break in switch) #

Total comments: 19

Patch Set 8 : Satish review. #

Total comments: 2

Patch Set 9 : Test fixed + Satish nits. #

Total comments: 18

Patch Set 10 : Fixed gyp rules for avoiding excluding TTS extensions #

Total comments: 2

Patch Set 11 : Fixed according to jam@ nits #

Patch Set 12 : Rebased after land of CL1.11 #

Patch Set 13 : Rebased (because of CL1.11 reverted and recommitted) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+623 lines, -125 lines) Patch
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/speech/input_tag_speech_dispatcher_host.h View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/speech/input_tag_speech_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +18 lines, -57 lines 0 comments Download
M content/browser/speech/speech_recognition_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
A + content/browser/speech/speech_recognition_dispatcher_host.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -21 lines 0 comments Download
A content/browser/speech/speech_recognition_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +181 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -9 lines 0 comments Download
M content/common/speech_recognition_messages.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +84 lines, -6 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/browser/speech_recognition_manager.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M content/public/browser/speech_recognition_session_context.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -7 lines 0 comments Download
M content/public/browser/speech_recognition_session_context.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input_tag_speech_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -0 lines 0 comments Download
A content/renderer/speech_recognition_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +70 lines, -0 lines 0 comments Download
A content/renderer/speech_recognition_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +193 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Primiano Tucci (use gerrit)
8 years, 7 months ago (2012-04-30 11:09:19 UTC) #1
hans
http://codereview.chromium.org/10273006/diff/2001/content/browser/speech/speech_recognition_dispatcher_host.cc File content/browser/speech/speech_recognition_dispatcher_host.cc (right): http://codereview.chromium.org/10273006/diff/2001/content/browser/speech/speech_recognition_dispatcher_host.cc#newcode22 content/browser/speech/speech_recognition_dispatcher_host.cc:22: bool IsSameContext(int render_process_id, i would personally move this function ...
8 years, 7 months ago (2012-05-11 16:56:32 UTC) #2
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10273006/diff/2001/content/browser/speech/speech_recognition_dispatcher_host.cc File content/browser/speech/speech_recognition_dispatcher_host.cc (right): http://codereview.chromium.org/10273006/diff/2001/content/browser/speech/speech_recognition_dispatcher_host.cc#newcode22 content/browser/speech/speech_recognition_dispatcher_host.cc:22: bool IsSameContext(int render_process_id, On 2012/05/11 16:56:32, hans wrote: > ...
8 years, 7 months ago (2012-05-14 12:58:22 UTC) #3
hans
LGTM http://codereview.chromium.org/10273006/diff/2001/content/browser/speech/speech_recognition_dispatcher_host.cc File content/browser/speech/speech_recognition_dispatcher_host.cc (right): http://codereview.chromium.org/10273006/diff/2001/content/browser/speech/speech_recognition_dispatcher_host.cc#newcode59 content/browser/speech/speech_recognition_dispatcher_host.cc:59: if (may_have_pending_requests_) On 2012/05/14 12:58:22, Primiano Tucci wrote: ...
8 years, 7 months ago (2012-05-14 14:04:52 UTC) #4
Primiano Tucci (use gerrit)
Ok, I also made some small modifications: - removed may_have_pending_requests_ from both input_tag_dispatcher_host and speech_recognition_dispatcher_host ...
8 years, 7 months ago (2012-05-16 18:22:16 UTC) #5
Primiano Tucci (use gerrit)
Fixed ENABLE_SPEECH_INPUT define guards.
8 years, 7 months ago (2012-05-17 10:43:40 UTC) #6
Primiano Tucci (use gerrit)
+avi@ for OWNERS approval on content/*gyp*, content/renderer and content/common/
8 years, 7 months ago (2012-05-17 13:51:20 UTC) #7
Satish
https://chromiumcodereview.appspot.com/10273006/diff/25004/chrome/browser/extensions/extension_function_registry.cc File chrome/browser/extensions/extension_function_registry.cc (right): https://chromiumcodereview.appspot.com/10273006/diff/25004/chrome/browser/extensions/extension_function_registry.cc#newcode248 chrome/browser/extensions/extension_function_registry.cc:248: #if defined(ENABLE_INPUT_SPEECH) the TTS extension api doesn't use the ...
8 years, 7 months ago (2012-05-20 22:57:45 UTC) #8
hans
https://chromiumcodereview.appspot.com/10273006/diff/25004/content/browser/speech/speech_recognition_dispatcher_host.cc File content/browser/speech/speech_recognition_dispatcher_host.cc (right): https://chromiumcodereview.appspot.com/10273006/diff/25004/content/browser/speech/speech_recognition_dispatcher_host.cc#newcode98 content/browser/speech/speech_recognition_dispatcher_host.cc:98: namespace { On 2012/05/20 22:57:46, Satish wrote: > It ...
8 years, 7 months ago (2012-05-21 09:08:41 UTC) #9
Primiano Tucci (use gerrit)
> https://chromiumcodereview.appspot.com/10273006/diff/25004/chrome/browser/extensions/extension_function_registry.cc#newcode248 > chrome/browser/extensions/extension_function_registry.cc:248: #if > defined(ENABLE_INPUT_SPEECH) > the TTS extension api doesn't use the ...
8 years, 7 months ago (2012-05-21 10:33:13 UTC) #10
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10273006/diff/25004/chrome/browser/extensions/extension_function_registry.cc File chrome/browser/extensions/extension_function_registry.cc (right): https://chromiumcodereview.appspot.com/10273006/diff/25004/chrome/browser/extensions/extension_function_registry.cc#newcode248 chrome/browser/extensions/extension_function_registry.cc:248: #if defined(ENABLE_INPUT_SPEECH) On 2012/05/20 22:57:46, Satish wrote: > the ...
8 years, 7 months ago (2012-05-21 10:33:55 UTC) #11
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10273006/diff/25004/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://chromiumcodereview.appspot.com/10273006/diff/25004/content/browser/renderer_host/render_process_host_impl.cc#newcode506 content/browser/renderer_host/render_process_host_impl.cc:506: GetID(), On 2012/05/20 22:57:46, Satish wrote: > could merge ...
8 years, 7 months ago (2012-05-21 13:38:24 UTC) #12
Satish
lgtm https://chromiumcodereview.appspot.com/10273006/diff/40001/content/browser/speech/speech_recognition_manager_impl.h File content/browser/speech/speech_recognition_manager_impl.h (right): https://chromiumcodereview.appspot.com/10273006/diff/40001/content/browser/speech/speech_recognition_manager_impl.h#newcode70 content/browser/speech/speech_recognition_manager_impl.h:70: virtual int LookupSessionByContext(int render_process_id, suggest renaming to 'GetSession' ...
8 years, 7 months ago (2012-05-21 15:18:58 UTC) #13
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10273006/diff/40001/content/browser/speech/speech_recognition_manager_impl.h File content/browser/speech/speech_recognition_manager_impl.h (right): https://chromiumcodereview.appspot.com/10273006/diff/40001/content/browser/speech/speech_recognition_manager_impl.h#newcode70 content/browser/speech/speech_recognition_manager_impl.h:70: virtual int LookupSessionByContext(int render_process_id, On 2012/05/21 15:18:58, Satish wrote: ...
8 years, 7 months ago (2012-05-21 16:37:12 UTC) #14
Primiano Tucci (use gerrit)
+jam@ for OWNERS approval on content/*gyp*, content/renderer and content/common/
8 years, 7 months ago (2012-05-23 14:27:19 UTC) #15
jam
lgtm with nits http://codereview.chromium.org/10273006/diff/21055/content/browser/speech/input_tag_speech_dispatcher_host.cc File content/browser/speech/input_tag_speech_dispatcher_host.cc (right): http://codereview.chromium.org/10273006/diff/21055/content/browser/speech/input_tag_speech_dispatcher_host.cc#newcode52 content/browser/speech/input_tag_speech_dispatcher_host.cc:52: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); see my other message about ...
8 years, 7 months ago (2012-05-23 15:41:24 UTC) #16
dmazzoni
Looks good for tts http://codereview.chromium.org/10273006/diff/37017/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): http://codereview.chromium.org/10273006/diff/37017/chrome/chrome_browser.gypi#newcode4435 chrome/chrome_browser.gypi:4435: /'third_party/mozilla_security_manager/nsNSSCertHelper.cpp', typo?
8 years, 7 months ago (2012-05-23 15:42:19 UTC) #17
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10273006/diff/21055/content/browser/speech/input_tag_speech_dispatcher_host.cc File content/browser/speech/input_tag_speech_dispatcher_host.cc (right): http://codereview.chromium.org/10273006/diff/21055/content/browser/speech/input_tag_speech_dispatcher_host.cc#newcode52 content/browser/speech/input_tag_speech_dispatcher_host.cc:52: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); On 2012/05/23 15:41:24, John Abd-El-Malek wrote: > see ...
8 years, 7 months ago (2012-05-23 17:11:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/10273006/46001
8 years, 7 months ago (2012-05-24 14:04:05 UTC) #19
commit-bot: I haz the power
Change committed as 138801
8 years, 7 months ago (2012-05-24 15:36:31 UTC) #20
hans
On 2012/05/24 15:36:31, I haz the power (commit-bot) wrote: > Change committed as 138801 Unfortunately, ...
8 years, 7 months ago (2012-05-24 16:21:05 UTC) #21
Primiano Tucci (use gerrit)
On 2012/05/24 16:21:05, hans wrote: > On 2012/05/24 15:36:31, I haz the power (commit-bot) wrote: ...
8 years, 7 months ago (2012-05-25 06:34:11 UTC) #22
hans
8 years, 7 months ago (2012-05-25 10:23:20 UTC) #23
Re-landed in r139015, bots looking good so far.

Powered by Google App Engine
This is Rietveld 408576698