tree: b7c15dd9210a722cfb36382d7e7e439d09534b2d [path history] [tgz]
  1. BUILD.gn
  2. hr_system_client.cc
  3. hr_system_client.mojom
  4. hr_system_server.cc
  5. hr_system_server.mojom
  6. README.md
examples/versioning/README.md

Mojom Versioning Example

This example demonstrates how to evolve Mojom definitions in a backward compatible way, so that apps using different versions of those Mojom definitions can still communicate with each other. This example use a fictitious human resource management system as example.

// TODO(yzshen): Demonstrate interface versioning when the feature is ready.

  • hr_system_{client, server}.mojom: Mojom definitions used by the client side and the server side, respectively. Some of those definitions are at different versions.
  • hr_system_client.cc: client of the HR system, built against hr_system_client.mojom.
  • hr_system_server.cc: server of the HR system, built against hr_system_server.mojom.