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

Issue 111713008: base: Refactor DiscardableMemoryProvider to build and be tested on all platforms. (Closed)

Created:
7 years ago by reveman
Modified:
7 years ago
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org
Visibility:
Public.

Description

base: Refactor DiscardableMemoryProvider to build and be tested on all platforms. This also moves DiscardableMemory::CreateLockedMemory implementations to platform specific files and allows us to choose what implementation to use at runtime. No change in behavior, refactor only. BUG=327516 TEST=base_unitttest --gtest_filter=DiscardableMemory* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240924

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move DiscardableMemoryEmulated to internal namespace #

Total comments: 2

Patch Set 3 : Make NotifyMemoryPressure a member function #

Patch Set 4 : Fix native_discardable_memory on ios. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -159 lines) Patch
M base/base.gyp View 1 chunk +0 lines, -5 lines 0 comments Download
M base/base.gypi View 2 chunks +5 lines, -9 lines 0 comments Download
A base/memory/discardable_memory_emulated.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
M base/memory/discardable_memory_emulated.cc View 1 1 chunk +42 lines, -62 lines 0 comments Download
A base/memory/discardable_memory_linux.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M base/memory/discardable_memory_provider.h View 1 2 2 chunks +1 line, -9 lines 0 comments Download
M base/memory/discardable_memory_provider.cc View 1 2 4 chunks +4 lines, -26 lines 0 comments Download
M base/memory/discardable_memory_provider_unittest.cc View 13 chunks +72 lines, -47 lines 0 comments Download
A base/memory/discardable_memory_win.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M build/common.gypi View 1 2 3 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 23 (0 generated)
reveman
7 years ago (2013-12-11 01:42:21 UTC) #1
Philippe
https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h File base/memory/discardable_memory_emulated.h (right): https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h#newcode12 base/memory/discardable_memory_emulated.h:12: class DiscardableMemoryEmulated : public DiscardableMemory { Should we have ...
7 years ago (2013-12-11 08:56:27 UTC) #2
reveman
https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h File base/memory/discardable_memory_emulated.h (right): https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h#newcode12 base/memory/discardable_memory_emulated.h:12: class DiscardableMemoryEmulated : public DiscardableMemory { On 2013/12/11 08:56:27, ...
7 years ago (2013-12-12 06:54:23 UTC) #3
Philippe
https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h File base/memory/discardable_memory_emulated.h (right): https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h#newcode19 base/memory/discardable_memory_emulated.h:19: bool Initialize(); On 2013/12/12 06:54:23, David Reveman wrote: > ...
7 years ago (2013-12-12 08:53:35 UTC) #4
Philippe
lgtm btw, although William is the expert here :)
7 years ago (2013-12-12 13:43:30 UTC) #5
reveman
https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h File base/memory/discardable_memory_emulated.h (right): https://codereview.chromium.org/111713008/diff/1/base/memory/discardable_memory_emulated.h#newcode19 base/memory/discardable_memory_emulated.h:19: bool Initialize(); On 2013/12/12 08:53:35, Philippe wrote: > On ...
7 years ago (2013-12-12 16:25:16 UTC) #6
reveman
willchan, ping for review. Here's a follow up patch that might be useful to understand ...
7 years ago (2013-12-13 18:29:52 UTC) #7
willchan no longer on Chromium
Nice refactor, I like it. And I like that you kept the refactor separate from ...
7 years ago (2013-12-13 19:45:38 UTC) #8
reveman
https://codereview.chromium.org/111713008/diff/20001/base/memory/discardable_memory_provider.h File base/memory/discardable_memory_provider.h (right): https://codereview.chromium.org/111713008/diff/20001/base/memory/discardable_memory_provider.h#newcode103 base/memory/discardable_memory_provider.h:103: DiscardableMemoryProvider* provider, On 2013/12/13 19:45:39, willchan wrote: > If ...
7 years ago (2013-12-13 20:12:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/111713008/40001
7 years ago (2013-12-13 20:15:01 UTC) #10
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=109951
7 years ago (2013-12-13 21:50:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/111713008/40001
7 years ago (2013-12-13 22:32:59 UTC) #12
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=110004
7 years ago (2013-12-13 23:48:43 UTC) #13
reveman
https://codereview.chromium.org/111713008/diff/60001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/111713008/diff/60001/build/common.gypi#newcode641 build/common.gypi:641: ['OS=="mac" or OS=="ios"', { How this worked before is ...
7 years ago (2013-12-14 05:32:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/111713008/60001
7 years ago (2013-12-14 05:34:21 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204065
7 years ago (2013-12-14 07:16:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/111713008/60001
7 years ago (2013-12-14 07:17:36 UTC) #17
reveman
https://codereview.chromium.org/111713008/diff/60001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/111713008/diff/60001/build/common.gypi#newcode641 build/common.gypi:641: ['OS=="mac" or OS=="ios"', { On 2013/12/14 05:32:59, David Reveman ...
7 years ago (2013-12-14 07:42:01 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=202393
7 years ago (2013-12-14 09:54:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/111713008/60001
7 years ago (2013-12-14 15:44:24 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=184682
7 years ago (2013-12-14 18:11:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/111713008/60001
7 years ago (2013-12-14 20:10:55 UTC) #22
commit-bot: I haz the power
7 years ago (2013-12-16 18:02:07 UTC) #23
Message was sent while issue was closed.
Change committed as 240924

Powered by Google App Engine
This is Rietveld 408576698