1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15

content / common / thread_type_switcher.mojom [blame]

// Copyright 2023 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 "mojo/public/mojom/base/thread_type.mojom";

// Implemented in the browser to handle thread type changes that cannot
// occur in a child process due to its sandbox, e.g. on Linux and ChromeOS.
interface ThreadTypeSwitcher {
  // Asks the browser to change the type of thread.
  SetThreadType(int32 platform_thread_id,
                mojo_base.mojom.ThreadType thread_type);
};