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

Issue 139803012: Move speech module over to Oilpan. (Closed)

Created:
6 years, 10 months ago by sof
Modified:
6 years, 10 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, Mads Ager (chromium), abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Move speech module over to Oilpan. This moves the speech/ interfaces over to using Oilpan transition types. With the exception of the event objects, which will wait until the base classes have been moved over. R=haraken@chromium.org, zerny@chromium.org BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167088

Patch Set 1 #

Patch Set 2 : Compilation fixes (enable_oilpan=0) #

Patch Set 3 : Add missing WTF:: qualifier #

Patch Set 4 : Try to address namespace mismatch(?) for template aliases #

Patch Set 5 : More namespace tweaks for clang #

Total comments: 50

Patch Set 6 : Fix SpeechRecognition.grammars() return type (CL not rebased yet) #

Patch Set 7 : Switch to using WillBeHeapVector transition type #

Total comments: 1

Patch Set 8 : Switch SpeechRecognitionResult over to WillBeHeapVector also #

Total comments: 28

Patch Set 9 : Avoid WillBeHeapVector<RefPtr<T>> #

Patch Set 10 : Avoid WillBeHeapVector<RefPtr<T>> #

Patch Set 11 : Pull in TraceTrait<RefPtr<T>> template specialization + add trace() over RawPtr<T>s. #

Total comments: 7

Patch Set 12 : Make SpeechSynthesisVoice GC-finalized #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -80 lines) Patch
M Source/bindings/v8/Dictionary.h View 1 2 3 4 5 3 chunks +30 lines, -9 lines 0 comments Download
M Source/bindings/v8/Dictionary.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M Source/heap/Handle.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -0 lines 0 comments Download
M Source/heap/Visitor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 2 comments Download
M Source/modules/speech/DOMWindowSpeechSynthesis.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/speech/SpeechGrammar.h View 3 chunks +7 lines, -3 lines 0 comments Download
M Source/modules/speech/SpeechGrammar.cpp View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/modules/speech/SpeechGrammar.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechGrammarList.h View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
M Source/modules/speech/SpeechGrammarList.cpp View 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechGrammarList.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechRecognition.h View 1 2 3 4 5 7 8 3 chunks +11 lines, -8 lines 1 comment Download
M Source/modules/speech/SpeechRecognition.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognition.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionAlternative.h View 2 chunks +6 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionAlternative.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionAlternative.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionEvent.h View 1 2 3 4 5 6 3 chunks +8 lines, -4 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognitionResult.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -4 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResult.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -4 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResult.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResultList.h View 1 2 3 4 5 6 1 chunk +7 lines, -3 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResultList.cpp View 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -2 lines 3 comments Download
M Source/modules/speech/SpeechRecognitionResultList.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechSynthesis.h View 1 2 3 4 5 6 5 chunks +11 lines, -8 lines 0 comments Download
M Source/modules/speech/SpeechSynthesis.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +14 lines, -5 lines 0 comments Download
M Source/modules/speech/SpeechSynthesis.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechSynthesisUtterance.h View 3 chunks +8 lines, -4 lines 0 comments Download
M Source/modules/speech/SpeechSynthesisUtterance.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechSynthesisUtterance.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechSynthesisVoice.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechSynthesisVoice.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechSynthesisVoice.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSpeechRecognitionResult.cpp View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 46 (0 generated)
sof
When you have some time, please take a look. Trying to pick up on the ...
6 years, 10 months ago (2014-02-11 19:30:23 UTC) #1
tkent
https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechRecognition.h File Source/modules/speech/SpeechRecognition.h (right): https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechRecognition.h#newcode59 Source/modules/speech/SpeechRecognition.h:59: PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; } Returning PassRefPtr looks ...
6 years, 10 months ago (2014-02-12 04:02:06 UTC) #2
haraken
Sorry for the review delay. https://codereview.chromium.org/139803012/diff/130001/Source/bindings/v8/Dictionary.h File Source/bindings/v8/Dictionary.h (right): https://codereview.chromium.org/139803012/diff/130001/Source/bindings/v8/Dictionary.h#newcode165 Source/bindings/v8/Dictionary.h:165: bool convert(ConversionContext &, const ...
6 years, 10 months ago (2014-02-12 05:18:44 UTC) #3
sof
Good stuff, thanks; will rebase and pick up the WillBeHeapVector transition type, which should tidy ...
6 years, 10 months ago (2014-02-12 07:48:50 UTC) #4
haraken
https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 07:48:51, sof wrote: > On ...
6 years, 10 months ago (2014-02-12 08:04:49 UTC) #5
sof
Sorry about the delay, it takes a while to verify changes with&without Oilpan enabled. I've ...
6 years, 10 months ago (2014-02-12 10:17:08 UTC) #6
haraken
Actually I want to have one more reviewer to take a look at this CL. ...
6 years, 10 months ago (2014-02-12 11:12:53 UTC) #7
zerny-chromium
On 2014/02/12 11:12:53, haraken wrote: > Actually I want to have one more reviewer to ...
6 years, 10 months ago (2014-02-12 11:44:53 UTC) #8
zerny-chromium
A few more comments: https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) Nit: the #if ...
6 years, 10 months ago (2014-02-12 11:45:18 UTC) #9
sof
https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 11:45:19, zerny-chromium wrote: > Nit: ...
6 years, 10 months ago (2014-02-12 11:48:32 UTC) #10
zerny-chromium
https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 11:48:33, sof wrote: > On ...
6 years, 10 months ago (2014-02-12 11:50:19 UTC) #11
sof
https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 11:50:20, zerny-chromium wrote: > On ...
6 years, 10 months ago (2014-02-12 11:54:43 UTC) #12
sof
https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/139803012/diff/320001/Source/modules/speech/SpeechRecognition.cpp#newcode118 Source/modules/speech/SpeechRecognition.cpp:118: Vector<RefPtr<SpeechRecognitionResult> > results(m_finalResults.size()); On 2014/02/12 11:12:54, haraken wrote: > ...
6 years, 10 months ago (2014-02-12 12:00:22 UTC) #13
zerny-chromium
https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 08:04:50, haraken wrote: > On ...
6 years, 10 months ago (2014-02-12 12:13:41 UTC) #14
haraken
> > Shall we add trace() to RefPtr.h? It wouldn't be nice we (sometimes) have ...
6 years, 10 months ago (2014-02-12 12:14:59 UTC) #15
zerny-chromium
On 2014/02/12 12:14:59, haraken wrote: > > > Shall we add trace() to RefPtr.h? It ...
6 years, 10 months ago (2014-02-12 12:16:44 UTC) #16
sof
https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 12:13:41, zerny-chromium wrote: > On ...
6 years, 10 months ago (2014-02-12 12:16:54 UTC) #17
sof
https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp File Source/modules/speech/SpeechGrammarList.cpp (right): https://codereview.chromium.org/139803012/diff/130001/Source/modules/speech/SpeechGrammarList.cpp#newcode68 Source/modules/speech/SpeechGrammarList.cpp:68: #if ENABLE(OILPAN) On 2014/02/12 12:16:55, sof wrote: > On ...
6 years, 10 months ago (2014-02-12 16:18:12 UTC) #18
sof
I pulled in the TraceTrait<RefPtr<T>> specialization from https://codereview.chromium.org/148523016/ (which has been temporarily reverted) -- my ...
6 years, 10 months ago (2014-02-12 21:17:57 UTC) #19
haraken
I double-checked. LGTM. https://codereview.chromium.org/139803012/diff/560001/Source/modules/speech/SpeechRecognitionResultList.cpp File Source/modules/speech/SpeechRecognitionResultList.cpp (right): https://codereview.chromium.org/139803012/diff/560001/Source/modules/speech/SpeechRecognitionResultList.cpp#newcode53 Source/modules/speech/SpeechRecognitionResultList.cpp:53: #if ENABLE(OILPAN) Are you planning to ...
6 years, 10 months ago (2014-02-13 01:21:20 UTC) #20
sof
https://codereview.chromium.org/139803012/diff/560001/Source/modules/speech/SpeechRecognitionResultList.cpp File Source/modules/speech/SpeechRecognitionResultList.cpp (right): https://codereview.chromium.org/139803012/diff/560001/Source/modules/speech/SpeechRecognitionResultList.cpp#newcode53 Source/modules/speech/SpeechRecognitionResultList.cpp:53: #if ENABLE(OILPAN) On 2014/02/13 01:21:21, haraken wrote: > > ...
6 years, 10 months ago (2014-02-13 06:47:30 UTC) #21
zerny-chromium
lgtm https://codereview.chromium.org/139803012/diff/560001/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/139803012/diff/560001/Source/heap/Handle.h#newcode399 Source/heap/Handle.h:399: ASSERT_NOT_REACHED(); As you pointed out, this might not ...
6 years, 10 months ago (2014-02-13 07:02:27 UTC) #22
sof
https://codereview.chromium.org/139803012/diff/560001/Source/modules/speech/SpeechRecognitionResultList.cpp File Source/modules/speech/SpeechRecognitionResultList.cpp (right): https://codereview.chromium.org/139803012/diff/560001/Source/modules/speech/SpeechRecognitionResultList.cpp#newcode53 Source/modules/speech/SpeechRecognitionResultList.cpp:53: #if ENABLE(OILPAN) On 2014/02/13 06:47:31, sof wrote: > On ...
6 years, 10 months ago (2014-02-13 07:52:38 UTC) #23
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 10 months ago (2014-02-13 08:50:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/139803012/660001
6 years, 10 months ago (2014-02-13 08:50:20 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 09:34:39 UTC) #26
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=15903
6 years, 10 months ago (2014-02-13 09:34:40 UTC) #27
sof
On 2014/02/13 09:34:40, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 10 months ago (2014-02-13 09:38:23 UTC) #28
haraken
tkent is off today. jochen@: Could you rubberstamp to web/ ?
6 years, 10 months ago (2014-02-13 09:39:56 UTC) #29
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-02-13 09:50:13 UTC) #30
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 10 months ago (2014-02-13 09:51:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/139803012/660001
6 years, 10 months ago (2014-02-13 09:51:10 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 13:00:08 UTC) #33
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=12178
6 years, 10 months ago (2014-02-13 13:00:09 UTC) #34
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 10 months ago (2014-02-13 13:07:51 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/139803012/660001
6 years, 10 months ago (2014-02-13 13:08:06 UTC) #36
commit-bot: I haz the power
Change committed as 167088
6 years, 10 months ago (2014-02-13 14:01:08 UTC) #37
loislo
A revert of this CL has been created in https://codereview.chromium.org/163493003/ by loislo@chromium.org. The reason for ...
6 years, 10 months ago (2014-02-13 14:24:43 UTC) #38
loislo
On 2014/02/13 14:24:43, loislo wrote: > A revert of this CL has been created in ...
6 years, 10 months ago (2014-02-13 14:25:20 UTC) #39
wibling-chromium
On 2014/02/13 14:25:20, loislo wrote: > On 2014/02/13 14:24:43, loislo wrote: > > A revert ...
6 years, 10 months ago (2014-02-13 14:39:00 UTC) #40
Vyacheslav Egorov (Chromium)
DBC https://codereview.chromium.org/139803012/diff/660001/Source/heap/Visitor.h File Source/heap/Visitor.h (right): https://codereview.chromium.org/139803012/diff/660001/Source/heap/Visitor.h#newcode330 Source/heap/Visitor.h:330: ASSERT_NOT_REACHED(); This should never be instantiated when ENABLE(OILPAN) ...
6 years, 10 months ago (2014-02-14 14:01:40 UTC) #41
sof
Thanks for carefully going through & checking the changes made. https://codereview.chromium.org/139803012/diff/660001/Source/heap/Visitor.h File Source/heap/Visitor.h (right): https://codereview.chromium.org/139803012/diff/660001/Source/heap/Visitor.h#newcode330 ...
6 years, 10 months ago (2014-02-16 20:29:14 UTC) #42
haraken
https://codereview.chromium.org/139803012/diff/660001/Source/modules/speech/SpeechRecognitionResultList.cpp File Source/modules/speech/SpeechRecognitionResultList.cpp (right): https://codereview.chromium.org/139803012/diff/660001/Source/modules/speech/SpeechRecognitionResultList.cpp#newcode49 Source/modules/speech/SpeechRecognitionResultList.cpp:49: : m_results(results) On 2014/02/16 20:29:15, sof wrote: > On ...
6 years, 10 months ago (2014-02-17 01:21:34 UTC) #43
sof
On 2014/02/17 01:21:34, haraken wrote: > https://codereview.chromium.org/139803012/diff/660001/Source/modules/speech/SpeechRecognitionResultList.cpp > File Source/modules/speech/SpeechRecognitionResultList.cpp (right): > > https://codereview.chromium.org/139803012/diff/660001/Source/modules/speech/SpeechRecognitionResultList.cpp#newcode49 > ...
6 years, 10 months ago (2014-02-17 07:41:00 UTC) #44
haraken
> Should I infer from that that the preferred mechanism is to have WebFoo add ...
6 years, 10 months ago (2014-02-17 07:44:27 UTC) #45
sof
6 years, 10 months ago (2014-02-17 07:56:37 UTC) #46
Message was sent while issue was closed.
On 2014/02/17 07:44:27, haraken wrote:
> > Should I infer from that that the preferred mechanism is to have WebFoo add
> > a WebFooPrivate class that Persistent<>-wraps the heap reference? And if
> > oilpan is disabled, have it behave like a WebPrivatePtr.
> 
> Yeah, but I found it hard to share code between the oilpan world and the
> non-oilpan world (See my CL: https://codereview.chromium.org/169323002). So I
> split the code using the #if ENABLE(OILPAN) flag. Let's wait for feedback to
the
> CL.

Will do.

FTR, https://codereview.chromium.org/169343002/ has the experimental bits
adding WebPrivateHeapPtr, along with some uses.

Powered by Google App Engine
This is Rietveld 408576698