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

Issue 169343002: [WIP]Add WebPrivateHeapPtr and use it for speech platform layer. (Closed)

Created:
6 years, 10 months ago by sof
Modified:
6 years, 10 months ago
CC:
blink-reviews, jamesr, arv+blink, dglazkov+blink, Inactive, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[WIP]Add WebPrivateHeapPtr and use it for speech platform layer. Add the ability for a platform layer object to wrap a heap reference, using a Persistent. If Oilpan is disabled, it effectively 'degenerates' into a WebPrivatePtr. R= BUG=

Patch Set 1 #

Total comments: 21
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -60 lines) Patch
M Source/core/speech/SpeechInputEvent.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/speech/SpeechInputResult.h View 3 chunks +8 lines, -4 lines 0 comments Download
M Source/core/speech/SpeechInputResult.cpp View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/speech/SpeechInputResult.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/speech/SpeechInputResultList.h View 1 chunk +6 lines, -2 lines 0 comments Download
M Source/core/speech/SpeechInputResultList.cpp View 2 chunks +10 lines, -3 lines 0 comments Download
M Source/core/speech/SpeechInputResultList.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechGrammar.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/speech/SpeechGrammar.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognition.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/speech/SpeechRecognition.cpp View 1 chunk +3 lines, -3 lines 1 comment Download
M Source/modules/speech/SpeechRecognitionEvent.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionEvent.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResult.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResult.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResultList.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResultList.cpp View 2 chunks +4 lines, -4 lines 1 comment Download
M Source/web/SpeechInputClientImpl.cpp View 1 chunk +1 line, -1 line 1 comment Download
M Source/web/SpeechRecognitionClientProxy.cpp View 1 chunk +4 lines, -4 lines 5 comments Download
M Source/web/WebSpeechGrammar.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/WebSpeechInputResult.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebSpeechRecognitionResult.cpp View 1 chunk +1 line, -1 line 1 comment Download
A public/platform/WebPrivateHeapPtr.h View 1 chunk +182 lines, -0 lines 8 comments Download
M public/web/WebSpeechGrammar.h View 2 chunks +4 lines, -4 lines 4 comments Download
M public/web/WebSpeechInputResult.h View 2 chunks +4 lines, -4 lines 0 comments Download
M public/web/WebSpeechRecognitionResult.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
haraken
This looks like a good approach! Ping us once it's ready for review. Once this ...
6 years, 10 months ago (2014-02-17 08:00:51 UTC) #1
sof
On 2014/02/17 08:00:51, haraken wrote: > This looks like a good approach! Ping us once ...
6 years, 10 months ago (2014-02-17 08:19:33 UTC) #2
haraken
Overall the approach looks reasonable to me. https://codereview.chromium.org/169343002/diff/1/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/169343002/diff/1/Source/modules/speech/SpeechRecognition.cpp#newcode196 Source/modules/speech/SpeechRecognition.cpp:196: visitor->trace(m_grammars); You ...
6 years, 10 months ago (2014-02-17 09:04:57 UTC) #3
sof
Great, thanks for the valuable feedback. I'm splitting out WebPrivateGarbageCollectedPtr (nee WebPrivateHeapPtr) into a separate ...
6 years, 10 months ago (2014-02-17 09:23:21 UTC) #4
sof
https://codereview.chromium.org/169343002/diff/1/public/platform/WebPrivateHeapPtr.h File public/platform/WebPrivateHeapPtr.h (right): https://codereview.chromium.org/169343002/diff/1/public/platform/WebPrivateHeapPtr.h#newcode35 public/platform/WebPrivateHeapPtr.h:35: #if INSIDE_BLINK On 2014/02/17 09:04:57, haraken wrote: > > ...
6 years, 10 months ago (2014-02-17 10:22:25 UTC) #5
tkent
https://codereview.chromium.org/169343002/diff/1/public/platform/WebPrivateHeapPtr.h File public/platform/WebPrivateHeapPtr.h (right): https://codereview.chromium.org/169343002/diff/1/public/platform/WebPrivateHeapPtr.h#newcode35 public/platform/WebPrivateHeapPtr.h:35: #if INSIDE_BLINK On 2014/02/17 10:22:26, sof wrote: > On ...
6 years, 10 months ago (2014-02-17 23:42:46 UTC) #6
sof
https://codereview.chromium.org/169343002/diff/1/public/platform/WebPrivateHeapPtr.h File public/platform/WebPrivateHeapPtr.h (right): https://codereview.chromium.org/169343002/diff/1/public/platform/WebPrivateHeapPtr.h#newcode35 public/platform/WebPrivateHeapPtr.h:35: #if INSIDE_BLINK On 2014/02/17 23:42:46, tkent wrote: > On ...
6 years, 10 months ago (2014-02-18 10:14:16 UTC) #7
abarth-chromium
6 years, 10 months ago (2014-02-18 17:38:50 UTC) #8
On 2014/02/18 10:14:16, sof wrote:
> On that last point, would it be acceptable to let public/WebPrivatePtr.h
> #include heap/Handle.h? (cf. https://codereview.chromium.org/168963003/#msg30
> ... well, it's not WebWillBePrivateGarbageCollectedPtr.h any longer, but
> WebPrivatePtr.h)

I haven't looked at this in detail, but generally speaking we can include Source
headers behind INSIDE_BLINK ifdefs.  The headers are visible to the various
Blink DLLs, but not to non-Blink DLLs.

Powered by Google App Engine
This is Rietveld 408576698