[mojo] Allow value deserialization to fail

This changes mojo::Deserialize_ et al to return a bool, opening
the door for deserialization code which performs custom validation
(in addition to baked-in mojom wire format validation) and may
reject incoming messages at the bindings layer.

Part of a series of changes to support custom mojom serialization:

  1. https://codereview.chromium.org/1515423002
  2. https://codereview.chromium.org/1517043004
  3. https://codereview.chromium.org/1524693002
  4. This CL
  5. https://codereview.chromium.org/1524613002
  6. https://codereview.chromium.org/1526533002
  7. https://codereview.chromium.org/1524703002

BUG=569669

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

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


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