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

Issue 78603002: Added RefCountedMallocedMemory (Closed)

Created:
7 years, 1 month ago by João Eiras
Modified:
4 years, 11 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Added RefCountedMallocedMemory Which takes ownership over a chunk of memory allocated with malloc or calloc and must then be freed using free(). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236675

Patch Set 1 #

Total comments: 1

Patch Set 2 : grammar fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M base/memory/ref_counted_memory.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M base/memory/ref_counted_memory.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M base/memory/ref_counted_memory_unittest.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
João Eiras
This class is handy for APIs that returned memory allocated with malloc, like for instance ...
7 years, 1 month ago (2013-11-20 18:05:46 UTC) #1
Elliot Glaysher
On 2013/11/20 18:05:46, João Eiras wrote: > This class is handy for APIs that returned ...
7 years, 1 month ago (2013-11-20 18:28:38 UTC) #2
João Eiras
On 2013/11/20 18:28:38, Elliot Glaysher wrote: > On 2013/11/20 18:05:46, João Eiras wrote: > > ...
7 years, 1 month ago (2013-11-21 13:14:32 UTC) #3
Elliot Glaysher
On 2013/11/21 13:14:32, João Eiras wrote: > On 2013/11/20 18:28:38, Elliot Glaysher wrote: > > ...
7 years, 1 month ago (2013-11-21 18:50:22 UTC) #4
brettw
lgtm https://codereview.chromium.org/78603002/diff/1/base/memory/ref_counted_memory.h File base/memory/ref_counted_memory.h (right): https://codereview.chromium.org/78603002/diff/1/base/memory/ref_counted_memory.h#newcode116 base/memory/ref_counted_memory.h:116: // An implementation of RefCountedMemory, that holds a ...
7 years, 1 month ago (2013-11-21 23:29:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/78603002/80001
7 years, 1 month ago (2013-11-22 00:04:21 UTC) #6
commit-bot: I haz the power
Change committed as 236675
7 years, 1 month ago (2013-11-22 01:49:41 UTC) #7
Lei Zhang
So it's 2 years later, and I don't see any users of RefCountedMallocedMemory except for ...
5 years ago (2015-12-19 00:57:22 UTC) #9
brettw
Nice catch! Let's remove.
4 years, 12 months ago (2015-12-29 06:05:23 UTC) #10
Lei Zhang
4 years, 11 months ago (2015-12-29 19:11:37 UTC) #11
Message was sent while issue was closed.
On 2015/12/29 06:05:23, brettw wrote:
> Nice catch! Let's remove.

https://codereview.chromium.org/1550963002

Powered by Google App Engine
This is Rietveld 408576698