Reimplement EWebContext::NotifyLowMemory method.
MemoryPurger class is a fork of the obsolete files
chrome/browser/memory_purger.cc/h, removed in [1].
In [2], it is advised for callers of this API to use
RenderThreadImpl::OnMemoryPressure instead.
Patch provides an implementation of EWebContext::NotifyLowMemory
based on MemoryPressureController class that calls out to
MemoryPressureListener and down to RenderThreadImpl::OnMemoryPressure.
ewk/efl_integration/memory_purger.cc/h are also removed, as well
as message EwkViewMsg_PurgeMemory and its associated handler
RenderProcessObserverEfl::OnPurgeMemory.
Experiments with this API shows that it frees up to 40Mb of RAM
when browsing facebook.com.
[1] https://codereview.chromium.org/
192573010
[2] https://code.google.com/p/chromium/issues/detail?id=350455#c13
Original beta/m47 patch: http://165.213.202.130/gerrit/#/c/105433/
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4822
Reviewed by: g.czajkowski
Change-Id: I437046a02b4486422dfd2913b1c2b51e405e8e2c
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>