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

content / public / browser / site_instance_process_assignment.h [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.

#ifndef CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_PROCESS_ASSIGNMENT_H_
#define CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_PROCESS_ASSIGNMENT_H_

namespace content {

// This enum describes how a renderer process is assigned to a SiteInstance.
enum class SiteInstanceProcessAssignment {
  // No renderer process has been assigned to the SiteInstance yet.
  UNKNOWN,

  // Reused some pre-existing process.
  REUSED_EXISTING_PROCESS,

  // Used an existing spare process.
  USED_SPARE_PROCESS,

  // No renderer could be reused, so a new one was created for the SiteInstance.
  CREATED_NEW_PROCESS,
};

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_PROCESS_ASSIGNMENT_H_