base: Rename DiscardableMemory::Memory() to ::data().

This make the API more consistent with RefCountedMemory and
other discardable memory interfaces such as SkDiscardableMemory.

Also improves readability by replacing memory->Memory() calls
with memory->data() calls.

A handy method is also added to simplify calling data() with a
reinterpret_cast. This is also consistent with RefCountedMemory.

BUG=

Review URL: https://codereview.chromium.org/1094433002

Cr-Commit-Position: refs/heads/master@{#325509}


CrOS-Libchrome-Original-Commit: 2cc373d6b2ad69b148aac9beed6874b9c8f606a5
4 files changed
tree: 8e4cb8550d43c7ca3175cd02ec68ed48bed8350e
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/