field_trial.mojom 1.0 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. // Information about Ash's field trial group to be propagated to lacros.
  6. [Stable]
  7. struct FieldTrialGroupInfo {
  8. string trial_name;
  9. string group_name;
  10. };
  11. // Interface for field trial observers. Implemented by lacros-chrome.
  12. // Used by ash-chrome to send field trial updates.
  13. [Stable, Uuid="4867d01a-c21d-4e67-9452-d9a6fe53606d"]
  14. interface FieldTrialObserver {
  15. // Called when a field trial group is activated.
  16. OnFieldTrialGroupActivated@0(
  17. array<FieldTrialGroupInfo> field_trial_group_infos);
  18. };
  19. // Interface that allows clients to receive update
  20. // when a trial field becomes active. Implemented by ash-chrome.
  21. [Stable, Uuid="14fa84de-e4ab-4fdc-aab6-9e933a8b2558"]
  22. interface FieldTrialService {
  23. // Adds an observer for field trial changes.
  24. AddFieldTrialObserver@0(
  25. pending_remote<FieldTrialObserver> observer);
  26. };