chromium/content/common/renderer_variations_configuration.mojom

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module content.mojom;

import "components/variations/variations.mojom";

// Configures the renderer.
interface RendererVariationsConfiguration {
  // Makes variations headers available to the renderer. Multiple header values
  // are sent because the renderer does not know in advance which header might
  // be needed for different requests.
  //
  // Only sent for non-incognito, non-guest sessions.
  SetVariationsHeaders(variations.mojom.VariationsHeaders? variations_headers);

  // Tells the renderer to create a FieldTrial, and by using a 100% probability
  // for the FieldTrial, forces the FieldTrial to have assigned group name.
  //
  // See base/metrics/field_trial.h for more information.
  SetFieldTrialGroup(string trial_name, string group_name);
};