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

Issue 13473005: Adding partially circular memory buffer wrapper. (Closed)

Created:
7 years, 8 months ago by Henrik Grunell
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, tommi (sloooow) - chröme
Visibility:
Public.

Description

Adding partially circular memory buffer wrapper. Will be used by WebRTC logging. BUG=229829 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195137

Patch Set 1 #

Total comments: 30

Patch Set 2 : Code review + added some lost code. #

Total comments: 12

Patch Set 3 : Code review #

Patch Set 4 : Renamed files to match new class name. #

Total comments: 2

Patch Set 5 : Added unit test. Code review fix. Fixed some errors. Fixed dchecks. #

Patch Set 6 : Fixed compilation error on some setups. #

Total comments: 17

Patch Set 7 : Code review fixes. Removed packing of struct. #

Total comments: 8

Patch Set 8 : Code review. #

Patch Set 9 : Changed size_t to uint32 #

Patch Set 10 : Re-added packing of struct. #

Total comments: 2

Patch Set 11 : Code review and rebase. #

Total comments: 2

Patch Set 12 : Code review + added CONTENT_EXPORT #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -0 lines) Patch
A content/common/partial_circular_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +70 lines, -0 lines 0 comments Download
A content/common/partial_circular_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +166 lines, -0 lines 0 comments Download
A content/common/partial_circular_buffer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +138 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Henrik Grunell
Unit test tbd.
7 years, 8 months ago (2013-04-02 15:49:39 UTC) #1
tommi (sloooow) - chröme
drive by https://codereview.chromium.org/13473005/diff/1/content/common/circular_memory_buffer.cc File content/common/circular_memory_buffer.cc (right): https://codereview.chromium.org/13473005/diff/1/content/common/circular_memory_buffer.cc#newcode10 content/common/circular_memory_buffer.cc:10: ((a) < (b) ? ((a) < (c) ...
7 years, 8 months ago (2013-04-02 19:34:07 UTC) #2
Henrik Grunell
Done code review fixes. Also added some code changes that was lost before uploading patch ...
7 years, 8 months ago (2013-04-03 12:47:27 UTC) #3
tommi (sloooow) - chröme
https://codereview.chromium.org/13473005/diff/5001/content/common/circular_memory_buffer.cc File content/common/circular_memory_buffer.cc (right): https://codereview.chromium.org/13473005/diff/5001/content/common/circular_memory_buffer.cc#newcode9 content/common/circular_memory_buffer.cc:9: #define MIN3(a, b, c) std::min(a, std::min(b, c)) in the ...
7 years, 8 months ago (2013-04-03 14:11:32 UTC) #4
Henrik Grunell
Code review fixes including changed to use pointer to struct. I suggest you read the ...
7 years, 8 months ago (2013-04-05 11:21:08 UTC) #5
tommi (sloooow) - chröme
thanks for making all the changes. Sorry I didn't mention this before but I think ...
7 years, 8 months ago (2013-04-05 14:43:07 UTC) #6
brettw
I'm happy to let tommi be the primary reviewer here. I agree that this seems ...
7 years, 8 months ago (2013-04-05 20:00:26 UTC) #7
Henrik Grunell
Added unit test. Code review fix. Fixed some errors. Fixed dchecks. Change in content/content_common.gypi is ...
7 years, 8 months ago (2013-04-10 13:25:13 UTC) #8
tommi (sloooow) - chröme
https://chromiumcodereview.appspot.com/13473005/diff/29001/content/common/partial_circular_buffer_unittest.cc File content/common/partial_circular_buffer_unittest.cc (right): https://chromiumcodereview.appspot.com/13473005/diff/29001/content/common/partial_circular_buffer_unittest.cc#newcode21 content/common/partial_circular_buffer_unittest.cc:21: const uint8 kInputData[14] = {1, 2, 3, 4, 5, ...
7 years, 8 months ago (2013-04-11 03:09:43 UTC) #9
Henrik Grunell
Code review fixes. Removed packing of struct - checking header size in test instead and ...
7 years, 8 months ago (2013-04-11 09:24:18 UTC) #10
tommi (sloooow) - chröme
lgtm https://chromiumcodereview.appspot.com/13473005/diff/29001/content/common/partial_circular_buffer.h File content/common/partial_circular_buffer.h (right): https://chromiumcodereview.appspot.com/13473005/diff/29001/content/common/partial_circular_buffer.h#newcode47 content/common/partial_circular_buffer.h:47: #pragma pack(push) I still think we should have ...
7 years, 8 months ago (2013-04-11 16:37:39 UTC) #11
Henrik Grunell
I'll fix the last minor comments from Tommi tomorrow. Brett; please look at this now.
7 years, 8 months ago (2013-04-11 19:18:36 UTC) #12
Henrik Grunell
Code review fixes. content/content_tests.gypi is rebase only. https://chromiumcodereview.appspot.com/13473005/diff/45001/content/common/partial_circular_buffer_unittest.cc File content/common/partial_circular_buffer_unittest.cc (right): https://chromiumcodereview.appspot.com/13473005/diff/45001/content/common/partial_circular_buffer_unittest.cc#newcode21 content/common/partial_circular_buffer_unittest.cc:21: const size_t ...
7 years, 8 months ago (2013-04-12 11:11:08 UTC) #13
Henrik Grunell
https://chromiumcodereview.appspot.com/13473005/diff/29001/content/common/partial_circular_buffer.h File content/common/partial_circular_buffer.h (right): https://chromiumcodereview.appspot.com/13473005/diff/29001/content/common/partial_circular_buffer.h#newcode47 content/common/partial_circular_buffer.h:47: #pragma pack(push) On 2013/04/11 16:37:39, tommi wrote: > I ...
7 years, 8 months ago (2013-04-14 07:06:48 UTC) #14
tommi (sloooow) - chröme
Yes, shared memory is ipc. It's better to keep it explicit than having to think ...
7 years, 8 months ago (2013-04-14 16:06:31 UTC) #15
Henrik Grunell
On 2013/04/14 16:06:31, tommi wrote: > Yes, shared memory is ipc. It's better to keep ...
7 years, 8 months ago (2013-04-15 06:47:58 UTC) #16
brettw
LGTM based on tommi's review (didn't look at the details, just marked something random I ...
7 years, 8 months ago (2013-04-17 17:48:12 UTC) #17
brettw
LGTM based on tommi's review (didn't look at the details, just marked something random I ...
7 years, 8 months ago (2013-04-17 17:48:12 UTC) #18
tommi (sloooow) - chröme
lgtm % one request https://chromiumcodereview.appspot.com/13473005/diff/77001/content/common/partial_circular_buffer.h File content/common/partial_circular_buffer.h (right): https://chromiumcodereview.appspot.com/13473005/diff/77001/content/common/partial_circular_buffer.h#newcode59 content/common/partial_circular_buffer.h:59: uint32 Min3(uint32 a, uint32 b, ...
7 years, 8 months ago (2013-04-18 16:38:52 UTC) #19
Henrik Grunell
https://chromiumcodereview.appspot.com/13473005/diff/68001/content/common/partial_circular_buffer.cc File content/common/partial_circular_buffer.cc (right): https://chromiumcodereview.appspot.com/13473005/diff/68001/content/common/partial_circular_buffer.cc#newcode11 content/common/partial_circular_buffer.cc:11: #define MIN3(a, b, c) std::min(a, std::min(b, c)) On 2013/04/17 ...
7 years, 8 months ago (2013-04-19 06:32:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grunell@chromium.org/13473005/92001
7 years, 8 months ago (2013-04-19 06:45:47 UTC) #21
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 12:47:10 UTC) #22
Message was sent while issue was closed.
Change committed as 195137

Powered by Google App Engine
This is Rietveld 408576698