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

Issue 10123008: Introduced ChunkedByteBuffer class which will be needed by next speech recognition CLs. (Closed)

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

Description

Introduced ChunkedByteBuffer class which will be required by next speech recognition CLs (2.x). BUG=116954 TEST=content_unittest (ChunkedByteBufferTest.BasicTest) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133885

Patch Set 1 #

Total comments: 18

Patch Set 2 : Reimplemented according to Satish suggestions. #

Total comments: 4

Patch Set 3 : Refactored according to Satish indications. #

Total comments: 1

Patch Set 4 : Refactored, now returns std::vector. #

Total comments: 4

Patch Set 5 : Fixed nits according to Hans review. #

Patch Set 6 : Removed GetFirstChunk() according to Satish indications. #

Patch Set 7 : Added CONTENT_EXPORT to fix compilation issues on win bots. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -0 lines) Patch
A content/browser/speech/chunked_byte_buffer.h View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
A content/browser/speech/chunked_byte_buffer.cc View 1 2 3 4 5 1 chunk +131 lines, -0 lines 0 comments Download
A content/browser/speech/chunked_byte_buffer_unittest.cc View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Primiano Tucci (use gerrit)
8 years, 8 months ago (2012-04-19 14:44:33 UTC) #1
Satish
http://codereview.chromium.org/10123008/diff/1/content/browser/speech/chunked_byte_buffer.cc File content/browser/speech/chunked_byte_buffer.cc (right): http://codereview.chromium.org/10123008/diff/1/content/browser/speech/chunked_byte_buffer.cc#newcode21 content/browser/speech/chunked_byte_buffer.cc:21: buffer_.reserve(buffer_.size() + length); I haven't verified it but can ...
8 years, 8 months ago (2012-04-23 11:01:44 UTC) #2
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10123008/diff/1/content/browser/speech/chunked_byte_buffer.cc File content/browser/speech/chunked_byte_buffer.cc (right): http://codereview.chromium.org/10123008/diff/1/content/browser/speech/chunked_byte_buffer.cc#newcode21 content/browser/speech/chunked_byte_buffer.cc:21: buffer_.reserve(buffer_.size() + length); On 2012/04/23 11:01:44, Satish wrote: > ...
8 years, 8 months ago (2012-04-23 17:13:57 UTC) #3
Satish
Thanks, looks better. Some additional comments.. http://codereview.chromium.org/10123008/diff/5001/content/browser/speech/chunked_byte_buffer.cc File content/browser/speech/chunked_byte_buffer.cc (right): http://codereview.chromium.org/10123008/diff/5001/content/browser/speech/chunked_byte_buffer.cc#newcode119 content/browser/speech/chunked_byte_buffer.cc:119: uint32 ChunkedByteBuffer::ReadBigEndian32(const uint8* ...
8 years, 8 months ago (2012-04-24 09:10:13 UTC) #4
Primiano Tucci (use gerrit)
Refactored and added the ByteBufferChunk class for returning chunks in a more elegant way, transferring ...
8 years, 8 months ago (2012-04-24 13:46:04 UTC) #5
Primiano Tucci (use gerrit)
Re-refactored, in order to return a std::vector<uint8>.
8 years, 8 months ago (2012-04-24 14:29:42 UTC) #6
hans
http://codereview.chromium.org/10123008/diff/16001/content/browser/speech/chunked_byte_buffer.h File content/browser/speech/chunked_byte_buffer.h (right): http://codereview.chromium.org/10123008/diff/16001/content/browser/speech/chunked_byte_buffer.h#newcode38 content/browser/speech/chunked_byte_buffer.h:38: // Appends bytes contained into the |string| to the ...
8 years, 8 months ago (2012-04-24 14:48:08 UTC) #7
Satish
lgtm http://codereview.chromium.org/10123008/diff/15002/content/browser/speech/chunked_byte_buffer.cc File content/browser/speech/chunked_byte_buffer.cc (right): http://codereview.chromium.org/10123008/diff/15002/content/browser/speech/chunked_byte_buffer.cc#newcode32 content/browser/speech/chunked_byte_buffer.cc:32: : partial_chunk_(new Chunk()), indent by 4 spaces http://codereview.chromium.org/10123008/diff/15002/content/browser/speech/chunked_byte_buffer.cc#newcode101 ...
8 years, 8 months ago (2012-04-24 15:05:33 UTC) #8
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10123008/diff/15002/content/browser/speech/chunked_byte_buffer.cc File content/browser/speech/chunked_byte_buffer.cc (right): http://codereview.chromium.org/10123008/diff/15002/content/browser/speech/chunked_byte_buffer.cc#newcode32 content/browser/speech/chunked_byte_buffer.cc:32: : partial_chunk_(new Chunk()), On 2012/04/24 15:05:33, Satish wrote: > ...
8 years, 8 months ago (2012-04-24 15:24:41 UTC) #9
jam
gypi files lgtm
8 years, 8 months ago (2012-04-24 15:58:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/10123008/25003
8 years, 8 months ago (2012-04-24 16:59:30 UTC) #11
commit-bot: I haz the power
Try job failure for 10123008-25003 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-24 18:00:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/10123008/37001
8 years, 8 months ago (2012-04-25 07:51:06 UTC) #13
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 09:47:16 UTC) #14
Change committed as 133885

Powered by Google App Engine
This is Rietveld 408576698