system_api: Add new healthd mojo service

Add CrosHealthdAshEventReporter constant.

BUG=b:267968613
TEST=Build with other CLs.

Change-Id: I4c9323863245eb7814ec066c3f6cff0c884b60c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4225617
Commit-Queue: Chung-sheng Wu <chungsheng@google.com>
Auto-Submit: Chung-sheng Wu <chungsheng@google.com>
Tested-by: Chung-sheng Wu <chungsheng@google.com>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
NOKEYCHECK=True
GitOrigin-RevId: 31ae1a05e25013fc335ad852ba9f9b6a4002bde8
1 file changed
tree: 09e1e19e120620042a33a973b01280f4990c1ea6
  1. constants/
  2. dbus/
  3. mojo/
  4. src/
  5. switches/
  6. .gitignore
  7. BUILD.gn
  8. build.rs
  9. Cargo.toml
  10. DIR_METADATA
  11. LICENSE
  12. OWNERS
  13. README.md
  14. system_api.pc
README.md

This directory (platform2/system_api) contains constants and definitions like D-Bus service names that are shared between Chromium and Chromium OS.

This directory is only for things like headers and .proto files. No implementation should be added.

When writting a .proto file make sure to use:

option optimize_for = LITE_RUNTIME;

This will force usage of a lite protobuf instead of a full/heavy weight protobuf. The browser only links against the light version, so you will get cryptic link errors about missing parts of Message if you define a protobuf here and then try to use it in Chrome. Currently CrOS links against the full protobuffer library, but that might change in the future.

When declaring a protobuf, avoid use of required unless it is exactly what you mean. "Required is Forever" and very rarely should actually be used. Consult Protocol Buffer Basics: C++ for a detailed of this issue.