Separate state updating code from MemoryCoordinatorImpl

We are going to merge MemoryCoordinator into MemoryCoordinatorImpl
as a part of preparations for adding an pure interface of
MemoryCoordinator in base/. Since they are not simple classes,
just merging them will create a big class which has multiple
responsibilities. Before merging them, factor out state updating
code from MemoryCoordinatorImpl.

BUG=673216

Review-Url: https://codereview.chromium.org/2568393002
Cr-Commit-Position: refs/heads/master@{#438743}
6 files changed