Added a SchemaMap.

A Schema defines the expected types of policy values. A SchemaMap maps an
identifier to its Schema. This identifier indicates which component is the
Schema for (e.g. the browser, or an extension).

This class will supersede the PolicyDomainDescriptor, which will be removed.

This class is refcounted so that any thread can work with the schemas (i.e.
a background worker can use Schema data to load the corresponding policies),
and is immutable. Updated version must make a copy of the map, modify it, and
be published as a new SchemaMap. This is handled by a subsequent component.

BUG=270667
R=bartfab@chromium.org, dconnelly@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233597 0039d316-1c4b-4281-b951-d872f2087c98


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