1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23

content / common / renderer_variations_configuration.mojom [blame]

// 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);
};