Make the internal storage policy::Schemas ref counted.

The policy Schemas are used to represent the expected data types of policy
values. Making their internal storage refcounted will allow passing them to background threads
that use them to validate data being loaded, while the UI thread may be
concurrently loading a new Schema for the same component.

This change makes Schema directly reference the InternalStorage struct, so that
SchemaOwner is not necessary anymore.

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

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

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


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