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

Issue 17315021: Refactored DataBuffer to use unix_hacker style methods. (Closed)

Created:
7 years, 6 months ago by Ty Overby
Modified:
7 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactored DataBuffer to use unix_hacker style methods. DataBuffer went from having pure virtual methods to having concrete implementations. However, the style of the method name remained in UpperCamelCase. This patch renames the methods to fit with the unix_hacker_style that is used for concrete implementations. BUG=251986 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208453

Patch Set 1 #

Patch Set 2 : Refactor DataBuffer #

Total comments: 6

Patch Set 3 : Fixes naming convention mistakes. #

Patch Set 4 : Fixed previous patch #

Patch Set 5 : Fixed accidental renaming of test cases. #

Total comments: 33

Patch Set 6 : Fixed style that was botched by an incorrect use of clang-format #

Total comments: 2

Patch Set 7 : fixed remaining style issues #

Total comments: 7

Patch Set 8 : Undid overzealous clang-format #

Total comments: 5

Patch Set 9 : Fixed style for audio_renderer_impl.cc #

Patch Set 10 : Inlined getters and setters on DataBuffer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -268 lines) Patch
M media/audio/linux/alsa_output.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M media/audio/linux/alsa_output_unittest.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -8 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/audio_splicer.cc View 1 2 5 chunks +20 lines, -20 lines 0 comments Download
M media/base/audio_splicer_unittest.cc View 1 2 14 chunks +76 lines, -76 lines 0 comments Download
M media/base/data_buffer.h View 1 2 3 4 5 6 7 8 9 3 chunks +41 lines, -11 lines 0 comments Download
M media/base/data_buffer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -46 lines 0 comments Download
M media/base/data_buffer_unittest.cc View 1 2 3 4 6 chunks +37 lines, -37 lines 0 comments Download
M media/base/seekable_buffer.cc View 1 2 3 4 5 6 7 8 9 chunks +18 lines, -18 lines 0 comments Download
M media/base/seekable_buffer_unittest.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M media/filters/audio_renderer_algorithm.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -6 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder_unittest.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/content_decryptor_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Ty Overby
In response to Issue 251986, this patch refactors DataBuffer to fit with the google style ...
7 years, 6 months ago (2013-06-20 21:09:15 UTC) #1
scherkus (not reviewing)
similar story w/ this CL https://codereview.chromium.org/17315021/diff/2001/media/base/data_buffer.h File media/base/data_buffer.h (right): https://codereview.chromium.org/17315021/diff/2001/media/base/data_buffer.h#newcode33 media/base/data_buffer.h:33: static scoped_refptr<DataBuffer> copy_from(const uint8* ...
7 years, 6 months ago (2013-06-20 21:29:13 UTC) #2
Ty Overby
I fixed all my previous mistakes with the refactor.
7 years, 6 months ago (2013-06-21 02:14:38 UTC) #3
scherkus (not reviewing)
looks like the style formatter went a bit overboard :( in the future: try not ...
7 years, 6 months ago (2013-06-21 19:48:38 UTC) #4
Ty Overby
Style is now done according to the chromium style guide.
7 years, 6 months ago (2013-06-21 20:58:17 UTC) #5
scherkus (not reviewing)
forgot two spots https://codereview.chromium.org/17315021/diff/22001/webkit/plugins/ppapi/content_decryptor_delegate.cc File webkit/plugins/ppapi/content_decryptor_delegate.cc (right): https://codereview.chromium.org/17315021/diff/22001/webkit/plugins/ppapi/content_decryptor_delegate.cc#newcode73 webkit/plugins/ppapi/content_decryptor_delegate.cc:73: if (array_size < str.size()) return false; ...
7 years, 6 months ago (2013-06-21 23:39:15 UTC) #6
Ty Overby (Google)
Weird, I have both of those changes on the branch that I swear I pushed ...
7 years, 6 months ago (2013-06-22 00:19:30 UTC) #7
scherkus (not reviewing)
when in doubt, make sure your branch has everything committed and re-run git cl upload
7 years, 6 months ago (2013-06-22 00:23:27 UTC) #8
scherkus (not reviewing)
no problem! it's why we do code reviews ;) lgtm
7 years, 6 months ago (2013-06-22 00:36:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoverby@chromium.org/17315021/28001
7 years, 6 months ago (2013-06-22 00:40:59 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=11572
7 years, 6 months ago (2013-06-22 00:59:25 UTC) #11
Ty Overby
On 2013/06/22 00:59:25, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 6 months ago (2013-06-22 01:07:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoverby@chromium.org/17315021/28001
7 years, 6 months ago (2013-06-24 15:59:45 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=11779
7 years, 6 months ago (2013-06-24 16:07:11 UTC) #14
brettw
I made a few general comments. In general, I think too many fomatting things were ...
7 years, 6 months ago (2013-06-24 20:25:41 UTC) #15
brettw
I didn't check the other files, but I think my comments apply to the others ...
7 years, 6 months ago (2013-06-24 20:27:59 UTC) #16
Ty Overby
On 2013/06/24 20:27:59, brettw wrote: > I didn't check the other files, but I think ...
7 years, 6 months ago (2013-06-24 20:57:29 UTC) #17
brettw
Thanks, here is some other stuff I noticed now that I did a full pass. ...
7 years, 6 months ago (2013-06-24 21:18:28 UTC) #18
Ty Overby
On 2013/06/24 21:18:28, brettw wrote: > Thanks, here is some other stuff I noticed now ...
7 years, 6 months ago (2013-06-24 22:29:06 UTC) #19
Ty Overby
Getters and Setters are now inline. Please commit if it looks good.
7 years, 6 months ago (2013-06-24 23:05:08 UTC) #20
brettw
lgtm
7 years, 6 months ago (2013-06-25 06:06:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoverby@chromium.org/17315021/54001
7 years, 6 months ago (2013-06-25 06:06:33 UTC) #22
commit-bot: I haz the power
7 years, 6 months ago (2013-06-25 08:41:04 UTC) #23
Message was sent while issue was closed.
Change committed as 208453

Powered by Google App Engine
This is Rietveld 408576698