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

Issue 1001873002: base: Rename discardable memory allocator interface and remove unnecessary class. (Closed)

Created:
5 years, 9 months ago by reveman
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, gavinp+memory_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@remove-dm-types
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Rename discardable memory allocator interface and remove unnecessary class. There's only one discardable memory allocator interface. Rename it to DiscardableMemoryAllocator. DiscardableMemoryShmemChunk class is unnecessary, remove it. BUG=442945, 422953 Committed: https://crrev.com/1af05cb3770b3e3eb61d3731a09efcd1fbec242b Cr-Commit-Position: refs/heads/master@{#321008}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : rebase #

Patch Set 4 : add comment to TestDiscardableMemoryAllocator #

Patch Set 5 : fix child process DiscardableMemoryImpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -322 lines) Patch
M ash/test/test_suite.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/test_suite.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M base/base.gyp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M base/base.gypi View 1 chunk +2 lines, -4 lines 0 comments Download
M base/memory/BUILD.gn View 1 2 chunks +4 lines, -8 lines 0 comments Download
M base/memory/discardable_memory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
A base/memory/discardable_memory_allocator.h View 1 chunk +32 lines, -0 lines 0 comments Download
A base/memory/discardable_memory_allocator.cc View 1 chunk +34 lines, -0 lines 0 comments Download
D base/memory/discardable_memory_shmem.h View 1 chunk +0 lines, -37 lines 0 comments Download
D base/memory/discardable_memory_shmem.cc View 1 chunk +0 lines, -50 lines 0 comments Download
D base/memory/discardable_memory_shmem_allocator.h View 1 chunk +0 lines, -42 lines 0 comments Download
D base/memory/discardable_memory_shmem_allocator.cc View 1 1 chunk +0 lines, -37 lines 0 comments Download
M base/test/BUILD.gn View 1 1 chunk +2 lines, -2 lines 0 comments Download
A base/test/test_discardable_memory_allocator.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A base/test/test_discardable_memory_allocator.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
D base/test/test_discardable_memory_shmem_allocator.h View 1 1 chunk +0 lines, -28 lines 0 comments Download
D base/test/test_discardable_memory_shmem_allocator.cc View 1 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/test/base/chrome_unit_test_suite.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/base/chrome_unit_test_suite.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/child/child_discardable_shared_memory_manager.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 1 2 3 4 5 chunks +33 lines, -17 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager_browsertest.cc View 1 2 5 chunks +8 lines, -9 lines 0 comments Download
M content/common/host_discardable_shared_memory_manager.h View 1 2 3 chunks +7 lines, -8 lines 0 comments Download
M content/common/host_discardable_shared_memory_manager.cc View 1 2 3 4 5 chunks +10 lines, -10 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M content/test/blink_test_environment.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ui/app_list/test/run_all_unittests.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ui/message_center/test/run_all_unittests.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
reveman
Last cleanup patch.
5 years, 9 months ago (2015-03-12 15:25:52 UTC) #2
Avi (use Gerrit)
lgtm stampity stamp
5 years, 9 months ago (2015-03-12 16:05:53 UTC) #3
reveman
+danakj for base/
5 years, 9 months ago (2015-03-12 16:55:10 UTC) #5
danakj
LGTM
5 years, 9 months ago (2015-03-12 16:58:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001873002/1
5 years, 9 months ago (2015-03-12 19:39:02 UTC) #8
reveman
+oshima for ash/test/ +thakis for chrome/ +stevenjb for ui/
5 years, 9 months ago (2015-03-16 21:06:56 UTC) #11
Nico
lgtm https://codereview.chromium.org/1001873002/diff/20001/base/memory/discardable_memory.cc File base/memory/discardable_memory.cc (right): https://codereview.chromium.org/1001873002/diff/20001/base/memory/discardable_memory.cc#newcode12 base/memory/discardable_memory.cc:12: scoped_ptr<DiscardableMemory> DiscardableMemory::CreateLockedMemory( should this go too? https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h File ...
5 years, 9 months ago (2015-03-16 21:55:31 UTC) #12
reveman
https://codereview.chromium.org/1001873002/diff/20001/base/memory/discardable_memory.cc File base/memory/discardable_memory.cc (right): https://codereview.chromium.org/1001873002/diff/20001/base/memory/discardable_memory.cc#newcode12 base/memory/discardable_memory.cc:12: scoped_ptr<DiscardableMemory> DiscardableMemory::CreateLockedMemory( On 2015/03/16 21:55:30, Nico (traveling) wrote: > ...
5 years, 9 months ago (2015-03-16 22:37:26 UTC) #13
danakj
https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h File base/test/test_discardable_memory_allocator.h (right): https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h#newcode12 base/test/test_discardable_memory_allocator.h:12: class TestDiscardableMemoryAllocator : public DiscardableMemoryAllocator { On 2015/03/16 22:37:26, ...
5 years, 9 months ago (2015-03-16 23:03:05 UTC) #14
reveman
https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h File base/test/test_discardable_memory_allocator.h (right): https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h#newcode12 base/test/test_discardable_memory_allocator.h:12: class TestDiscardableMemoryAllocator : public DiscardableMemoryAllocator { On 2015/03/16 23:03:05, ...
5 years, 9 months ago (2015-03-17 04:09:15 UTC) #15
reveman
https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h File base/test/test_discardable_memory_allocator.h (right): https://codereview.chromium.org/1001873002/diff/20001/base/test/test_discardable_memory_allocator.h#newcode12 base/test/test_discardable_memory_allocator.h:12: class TestDiscardableMemoryAllocator : public DiscardableMemoryAllocator { On 2015/03/17 04:09:15, ...
5 years, 9 months ago (2015-03-17 14:02:41 UTC) #16
Nico
(as i said, i'm fine with the name as-is too) On Tue, Mar 17, 2015 ...
5 years, 9 months ago (2015-03-17 14:11:23 UTC) #17
reveman
oshima, stevenjb, please take a look at the ash/ui changes when you have a chance.
5 years, 9 months ago (2015-03-17 18:26:16 UTC) #18
oshima
ash/test lgtm
5 years, 9 months ago (2015-03-17 18:28:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001873002/80001
5 years, 9 months ago (2015-03-17 22:53:03 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-17 23:18:37 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 23:19:15 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1af05cb3770b3e3eb61d3731a09efcd1fbec242b
Cr-Commit-Position: refs/heads/master@{#321008}

Powered by Google App Engine
This is Rietveld 408576698