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

Issue 119143002: Introduce VTTScanner - a parser helper for various VTT parsing needs (Closed)

Created:
7 years ago by fs
Modified:
6 years, 11 months ago
CC:
blink-reviews, nessy, philipj_slow, gasubic, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce VTTScanner - a parser helper for various VTT parsing needs Add a new helper class - VTTScanner - with the aim of performing less explicit splitting/reallocation of strings (best case, none at all) and have less explicit index boundary checks. To allow this new scheme to interact and work side-by-side with the old <String, position> scheme, also add a wrapper VTTLegacyScanner which allows state to be imported and exported based on scope. Start converting code to the new scheme by modifying VTTParser::collectTimingsAndSettings and VTTParser::collectTimeStamp to use this helper. TEST=unittests:VTTScanner.* TEST=Existing VTT cue settings parsing tests (various in media/track/*) BUG=305317 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164775

Patch Set 1 #

Patch Set 2 : Fix signedness issue in unittest. #

Patch Set 3 : Unstuffed VTTScanner class decl. #

Total comments: 4

Patch Set 4 : struct Run -> class Run; explicit constructor; make non-copyable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -56 lines) Patch
M Source/core/core.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTParser.h View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/track/vtt/VTTParser.cpp View 7 chunks +24 lines, -52 lines 0 comments Download
A Source/core/html/track/vtt/VTTScanner.h View 1 2 3 1 chunk +221 lines, -0 lines 0 comments Download
A Source/core/html/track/vtt/VTTScanner.cpp View 1 2 3 1 chunk +106 lines, -0 lines 0 comments Download
A Source/core/html/track/vtt/VTTScannerTest.cpp View 1 2 3 1 chunk +221 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
fs
7 years ago (2013-12-19 14:48:01 UTC) #1
Mike West
I've taken a quick look at this, and overall I think it's a reasonable change ...
7 years ago (2013-12-20 12:37:32 UTC) #2
Mike West
On 2013/12/20 12:37:32, Mike West wrote: > I've taken a quick look at this, and ...
7 years ago (2013-12-20 12:38:08 UTC) #3
fs
On 2013/12/20 12:37:32, Mike West wrote: > I've taken a quick look at this, and ...
7 years ago (2013-12-20 13:09:00 UTC) #4
fs
No great luck unstuffing the header, but unstuffed the class decl. a bit at least...
7 years ago (2013-12-20 13:40:22 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/119143002/diff/70001/Source/core/html/track/vtt/VTTScanner.h File Source/core/html/track/vtt/VTTScanner.h (right): https://codereview.chromium.org/119143002/diff/70001/Source/core/html/track/vtt/VTTScanner.h#newcode49 Source/core/html/track/vtt/VTTScanner.h:49: class VTTScanner { can you make this class non-copiable ...
6 years, 11 months ago (2014-01-03 11:02:23 UTC) #6
fs
On 2014/01/03 11:02:23, jochen wrote: > https://codereview.chromium.org/119143002/diff/70001/Source/core/html/track/vtt/VTTScanner.h > File Source/core/html/track/vtt/VTTScanner.h (right): > > https://codereview.chromium.org/119143002/diff/70001/Source/core/html/track/vtt/VTTScanner.h#newcode49 > ...
6 years, 11 months ago (2014-01-08 11:45:56 UTC) #7
fs
6 years, 11 months ago (2014-01-08 11:46:18 UTC) #8
Mike West
LGTM. Thank you for adding unit tests; it makes me much less scared of this ...
6 years, 11 months ago (2014-01-09 13:05:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/119143002/130001
6 years, 11 months ago (2014-01-09 13:28:33 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 13:34:14 UTC) #11
Message was sent while issue was closed.
Change committed as 164775

Powered by Google App Engine
This is Rietveld 408576698