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

Issue 2293983002: rtc::Buffer: Let SetData and AppendData accept anything with .data() and .size() (Closed)

Created:
4 years, 3 months ago by kwiberg-webrtc
Modified:
4 years, 3 months ago
Reviewers:
ossu
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

rtc::Buffer: Let SetData and AppendData accept anything with .data() and .size() In addition to setting or appending from another Buffer, which was already possible, this allows for e.g. std::vector and rtc::ArrayView arguments. Committed: https://crrev.com/d31340356428af861c12f9de87f298cbbd985843 Cr-Commit-Position: refs/heads/master@{#14073}

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comment changes #

Patch Set 3 : rebase #

Patch Set 4 : Use rtc::HasDataAndSize (née rtc::internal::HasDataAndSize) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -67 lines) Patch
M webrtc/base/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/array_view.h View 1 2 3 2 chunks +4 lines, -30 lines 0 comments Download
M webrtc/base/array_view_unittest.cc View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
M webrtc/base/base.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/buffer.h View 1 2 3 3 chunks +13 lines, -2 lines 0 comments Download
M webrtc/base/buffer_unittest.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
A webrtc/base/type_traits.h View 1 2 3 1 chunk +77 lines, -0 lines 2 comments Download

Messages

Total messages: 14 (3 generated)
kwiberg-webrtc
4 years, 3 months ago (2016-08-30 18:08:07 UTC) #2
ossu
https://codereview.webrtc.org/2293983002/diff/1/webrtc/base/buffer.h File webrtc/base/buffer.h (right): https://codereview.webrtc.org/2293983002/diff/1/webrtc/base/buffer.h#newcode195 webrtc/base/buffer.h:195: template <typename W> "W" as in Whatever? :) https://codereview.webrtc.org/2293983002/diff/1/webrtc/base/buffer_unittest.cc ...
4 years, 3 months ago (2016-08-31 09:31:03 UTC) #3
kwiberg-webrtc
New patch set posted. https://codereview.webrtc.org/2293983002/diff/1/webrtc/base/buffer.h File webrtc/base/buffer.h (right): https://codereview.webrtc.org/2293983002/diff/1/webrtc/base/buffer.h#newcode195 webrtc/base/buffer.h:195: template <typename W> On 2016/08/31 ...
4 years, 3 months ago (2016-09-01 09:23:53 UTC) #4
kwiberg-webrtc
Ping on this one. Oh, and do you suppose I should use the template magic ...
4 years, 3 months ago (2016-09-05 07:21:29 UTC) #5
ossu
On 2016/09/05 07:21:29, kwiberg-webrtc wrote: > Ping on this one. > > Oh, and do ...
4 years, 3 months ago (2016-09-05 09:24:00 UTC) #6
kwiberg-webrtc
On 2016/09/05 09:24:00, ossu wrote: > On 2016/09/05 07:21:29, kwiberg-webrtc wrote: > > Ping on ...
4 years, 3 months ago (2016-09-05 13:24:00 UTC) #7
ossu
lgtm with a comment https://codereview.webrtc.org/2293983002/diff/60001/webrtc/base/type_traits.h File webrtc/base/type_traits.h (right): https://codereview.webrtc.org/2293983002/diff/60001/webrtc/base/type_traits.h#newcode39 webrtc/base/type_traits.h:39: namespace test_has_data_and_size { Should this ...
4 years, 3 months ago (2016-09-05 13:33:49 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/2293983002/diff/60001/webrtc/base/type_traits.h File webrtc/base/type_traits.h (right): https://codereview.webrtc.org/2293983002/diff/60001/webrtc/base/type_traits.h#newcode39 webrtc/base/type_traits.h:39: namespace test_has_data_and_size { On 2016/09/05 13:33:48, ossu wrote: > ...
4 years, 3 months ago (2016-09-05 14:04:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2293983002/60001
4 years, 3 months ago (2016-09-05 14:04:43 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-05 14:46:23 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 14:46:31 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d31340356428af861c12f9de87f298cbbd985843
Cr-Commit-Position: refs/heads/master@{#14073}

Powered by Google App Engine
This is Rietveld 408576698