chromium/third_party/blink/public/mojom/user_agent/user_agent_metadata.mojom

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

module blink.mojom;

struct UserAgentBrandVersion {
  string brand;
  string version;
};

// See UserAgentMetadata in
// third_party/blink/public/common/user_agent/user_agent_metadata.h
struct UserAgentMetadata {
  array<UserAgentBrandVersion> brand_version_list;
  array<UserAgentBrandVersion> brand_full_version_list;

  string full_version;
  string platform;
  string platform_version;
  string architecture;
  string model;
  bool mobile;
  string bitness;
  bool wow64;
  array<string> form_factors;
};

// See UserAgentOverride in
// third_party/blink/public/common/user_agent/user_agent_metadata.h
struct UserAgentOverride {
  string ua_string_override;
  UserAgentMetadata? ua_metadata_override;
};