chromium/third_party/blink/public/mojom/v8_cache_options.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;

// Cache options for V8.
// TODO(leonhsl): Use this to replace blink::WebSettings::V8CacheOptions and
// blink::V8CacheOptions.
enum V8CacheOptions {
  // Use whatever the current default is.
  kDefault,

  // V8 caching turned off.
  kNone,

  // Use code caching.
  kCode,

  // Generate the code cache in the first load.
  kCodeWithoutHeatCheck,

  // Generate the full code cache in the first load.
  kFullCodeWithoutHeatCheck,
};